Home>Support>Button to resizeable window

Button to resizeable window

Notice: This thread is over two years old; the information may be outdated. Please consider creating a new thread if you require free support. If you have an active SiteOrigin Premium license, you can email our premium support desk at [email protected].

Is it possible to use the SO Button to link to a resizeable window?
If yes, please point me in the right direction.

Thank you.

Stephen Reeve

This is our free support forum. Replies can take several days. If you need fast email support, please purchase a SiteOrigin Premium license.

  1. 9 years, 2 months ago Alex S
    Hi, I Work Here

    Hi Steve,

    Yes. Set up the button as you want and then go down to the Other Attributes and SEO options group and set the onclick event to the following code:

    window.open("http://yourdomain.com/example-page/", "Window Title here", "resizable,scrollbars,status");
    

    For more information, and other code examples, please refer to this MDN article. Please note that you shouldn’t directly copy and paste any code examples on that page as they’re not in the required on click context and are very unlikely to work. If you need help with adding the code let me know and I’ll make adjustments to it to get it working as expected.

  2. 9 years, 1 month ago stevereeve

    Hi Alex

    Thanks for persevering with me!
    This is the last major issue on this site ….

    The method you give works for a page within the site – ie opens in a new window

    but

    when trying to get a page in an external site to open it always opens in a
    new tab not new window.

    For the moment I’m just going to leave it as opening in a tab but if you
    have a moment …

    Thanks

    Steve

  3. 9 years, 1 month ago Alex S
    Hi, I Work Here

    Hi Steve,

    Try:

    window.open("http://yourdomain.com/example-page/", "_blank", "toolbar=0,location=0,menubar=0");
    
  4. 9 years, 1 month ago stevereeve

    No, unfortunately that does not work.

    Have tried many variations – obviously not hit on the right one!

    Steve

  5. 9 years, 1 month ago Alex S
    Hi, I Work Here

    Hi Steve,

    Hm. I’m not too sure. That has typically always worked for me. What browser are you using?

  6. 9 years, 1 month ago stevereeve

    Firefox – I was beginning to wonder if that might be the issue.
    Will try another when I have a free moment.

    Steve

  7. 9 years, 1 month ago stevereeve

    Another of those moments when I feel like throwing something!

    Sorry to have wasted your time ….

    Firefox options….

    ‘Open new windows in a new tab instead’ seems to be selected by default. You live and learn.

    Problem solved. Thanks.

    Steve

Replies on this thread are closed. Please create a new thread if you have a question, or purchase a SiteOrigin Premium license if you need one-on-one email support.

Get The Most Out of SiteOrigin with SiteOrigin Premium

Find Out More