This topic is locked
[SOLVED]

 Menu item as POP-UP window?

4/14/2010 4:30:54 PM
PHPRunner General questions
F
FunkDaddy author

Does anyone know how to set a menu link as a pop-up window? I need to launch an external page, but have that newly launched page appear in a certain size window.
Thanks,
M

F
FunkDaddy author 4/14/2010

I figured it out! <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=49164&image=1&table=forumreplies' class='bbc_emoticon' alt=':D' />
No custom code tweaks needed at all!
Using the standard Menu builder menu you can create a link to an external page you want, then add features to those links... the trick is escape the double quotation marks throughout. So here is an example of the link I entered into the "Link To: box of the menu builder to open Google as a pop-up window:
http://sites.google.com/site/directorease/\"; onClick=\"popup = window.open('http://sites.google.com/site/directorease/';, 'PopupPage', 'height=450,width=500,scrollbars=yes,resizable=yes'); return false\" target=\"_blank
Notice I simply used \ to escape the double quotations!
Hope this helps someone!
M