How to make a href link in button short code works with a fixed sized popup window


  • Member
    jdong
    August 4, 2015 at 5:56 pm #22432

    Dear BlueOwl,
    Here is the button shortcade, it will open the link in a new tab.
    [button href="example.html" target="_blank" css_classes="e.g. button_hilite button_pale sm_button"]Datasheet[/button]

    what if i want to open the link in a fixed sized popup window? I tried the code below, it doesn’t work.
    [button href="example.html" target="popup" onclick="window.open('example.html', 'popup', 'width=300,height=150'); return false" css_classes="e.g. button_hilite button_pale sm_button"]Datasheet[/button]

    Can you help me how to make it work?

    Thank you so much!

    Sorry, this forum is for verified users only. Please Login or Register to continue

Comments are closed.