N
Nick72
Hi,
I've been reading through tons of posts regarding the problems people
have encountered with getting javascript functions to trigger when
called from onclick events... But so far, I haven't found a solution
that works for me...
I am trying to launch a popup window when the user clicks on an image.
I have managed to get this to work in IE6 by using an image button
(ASP.NET), but this failed in Netscape.
I can now get it to work in Netscape by triggering the window.open
command from the onclick event attached to an <IMG> or <A> tag.
But, this doesn't work in IE6.
The code:
<a href="" onclick="openFullWindow();return false;"><IMG
src="img/space vase web button.jpg"></a>
DOES NOT work in IE6. the HREF parameter is not ignored due to the
'return false;' command... The browser reloads the current page (as
expected) but the javascript procedure 'openFullWindow()' is never
called.
Can anyone provide a solution to my problem?
I'm kind of new to all these languages...
Thanks,
Nick
I've been reading through tons of posts regarding the problems people
have encountered with getting javascript functions to trigger when
called from onclick events... But so far, I haven't found a solution
that works for me...
I am trying to launch a popup window when the user clicks on an image.
I have managed to get this to work in IE6 by using an image button
(ASP.NET), but this failed in Netscape.
I can now get it to work in Netscape by triggering the window.open
command from the onclick event attached to an <IMG> or <A> tag.
But, this doesn't work in IE6.
The code:
<a href="" onclick="openFullWindow();return false;"><IMG
src="img/space vase web button.jpg"></a>
DOES NOT work in IE6. the HREF parameter is not ignored due to the
'return false;' command... The browser reloads the current page (as
expected) but the javascript procedure 'openFullWindow()' is never
called.
Can anyone provide a solution to my problem?
I'm kind of new to all these languages...
Thanks,
Nick