PDA

View Full Version : Anylink drop down menu with a popup page



dz67
09-25-2005, 09:26 PM
Is it possible to add a pop up page with the below code like:-

<A class="pop" HREF="javascript:void(0)" ONCLICK="open('/???/default.asp','miniwin','scrollbars=1,width=568,height=450')">

it would be excellent if anyone has a solution to this.

I have tried placing the above into the link but doesn't want to work.

Any help useful. Cheers.

jscheuer1
09-25-2005, 10:47 PM
<a class="pop" href="/???/default.asp" onclick="window.open(this.href,'miniwin','scrollbars=1,width=568,height=450');return false;">Link Text or Image Tag</a>If you are putting this inside of a javascript array, whatever delimiting quotes are used for the array must be escaped in the code:

arrayName[0]='<a class="pop" href="/???/default.asp" onclick="window.open(this.href,\'miniwin\',\'scrollbars=1,width=568,height=450\');return false;">Link Text or Image Tag</a>'

dz67
09-26-2005, 12:18 PM
absolutely brilliant. exactly what i was looking for. cheers, much appreciated. that was the icing on the cake for the completion of my website.