Forum Moderators: open
For some inexplicable reason when a user clicks on a javascript popup link it refreshes the main/parent window.
This has the knock on effect of messing up a javascript function to get a value from the parent window.
I can't work out why the page is refreshing, it does this in IE and FFox. Can someone please help!?
<snip>
The error occurs when clicking on the "More Info" links on any product. This stops the Add to Cart button on the More Info page from working.
Any help is very much appreciated.
Thanks
Andy
[edited by: engine at 8:56 pm (utc) on Dec. 20, 2004]
[edit reason] No urls, thanks. See TOS [webmasterworld.com] [/edit]
href="javascript:...blah...;void 0;" It may be better to put the scripting into an onclick handler, and put the actual url into the href. This way JS-disabled browsers will still have access to 'more info'.
href="infopage.htm" onclick="popFunction('infopage.htm', etc, etc); return false;"