Tagged: 

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #554498

    Hello. I have a button the launches an email client. That’s working great, but there is a blank window left behind (URL shown below) that I would like to be closed automatically. I found some code (shown below), but not sure if it’s the right, where I would put the code or if this is even possible.

    URL Of Blank Window Left Behind:
    mailto: (Email address hidden if logged out) ?subject=Metolious%20Capital%20Resume%20Submission

    Website Page w/ Button (Attach Resume):
    http://metoliuscapital.flywheelsites.com/contact-us/

    Code:
    <head>
    <script type=”text/javascript”>
    function Open () {
    window.open (window.location.href, “_blank”, “width=350, height=250, left=10, top=10″);
    }
    function Close () {
    window.close ();
    }
    </script>
    </head>
    <body>
    <button onclick=”Open ();”>Open a new window</button>
    <button onclick=”Close ();”>Close the current window</button>
    </body>

    #554988

    Hello. I was making this overly-complicated and the key was to NOT open the button link in a new window. Here is what I did to create a Resume Submission button

    1. Create button
    2. Ensure ‘Open in same window’ is selected
    3. Set the following manual URL: info@domain_name.com?subject=<company_name>Resume Submission

    #555010

    Hey!

    Glad you figured it out!
    Let us know if you have any other questions or issues :)

    Best regards,
    Yigit

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.