-
AuthorPosts
-
October 15, 2015 at 4:33 am #626178
Hi,
I have a button in my xtheme which shall open up a popup. I thought about adding an onclick action like shown below but this does not work. How do I have to add the onclick action for x-buttons?My button is this:
[button type="flat" shape="square" size="regular" href="#" target="_blank" title="Open Popup"]
And I need to add an onclick action like this:
<a href="#" onclick="window.open('/widgets/popup.html','popup','width=550px,height=750px,scrollbars=0,menubar=0,toolbar=0' )">My popup.</a>
My idea was like this but it did not work. Any quick suggestions?
[button type="flat" shape="square" size="regular" href="#" target="_blank" onclick="window.open('/widgets/popup.html','popup','width=550px,height=750px,scrollbars=0,menubar=0,toolbar=0' ) title="My popup"]
Thanks
October 15, 2015 at 4:58 am #626199Hello There,
Thanks for writing in!
Adding onclick on the button shortcode will not work. We recommend an alternative in getting the popup link in your page. Please use a raw content element and insert this code:
<a class="x-btn x-btn-flat x-btn-square x-btn-regular" href="#" target="_blank" onclick="window.open('/widgets/popup.html','popup','width=550px,height=750px,scrollbars=0,menubar=0,toolbar=0' )" title="My popup">My popup.</a>
We would loved to know if this has work for you. Thank you.
October 15, 2015 at 5:32 am #626231Yes, this worked perfectly. thank you.
October 15, 2015 at 6:42 am #626306You’re most welcome!
-
AuthorPosts