For a standard text link you would have:
<a href="your_page.html">text link</a>
Well try this instead:
Obviously, the "openWindow" bit will have to be changed to whatever function name you have for your script.Code:
This is the method I use, so I know it works. :)
Thanks Saz. That'll do the trick. :)
<a href="#" onClick="window.open('http://members.aol.com/grassblad','','width=300,height=300')">GrassBlade</a>
Another slight problem. Here's the code I'm now using:However, in Internet Explorer 6.x at least, the window takes several seconds to appear and the main page reloads with the text "[object]" in it.Code:
Why is the main page reloading and the new window taking so long to initiate?
EDIT: Hold on; let me see if Vinny's does the trick.
Vinny, using your model doesn't reload the initial page to "[object]," which is great. However, the anchor tag (#whatever) isn't passed to the new window either.
Is the '#dproject' supposed to bring you to an anchor named 'dproject'? If so, it should work -- in html. But, you are opening a php page, so the question is: what are you doing on the php side to read the attached?Quote:
I ask because:
here is the code i use for a popup, nice and easy
i didnt read every reply so excuse me if its already there :DQuote:
<A HREF="#" onClick="window.open('http://www.whatever.com',