Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q230 How can I use an image onMouseOver event to load a new window, without an image click changing the location?

You are here: irt.org | FAQ | JavaScript | Link | Q230 [ previous next ]

Add a void type function to the href to stop it loading the index:

<SCRIPT LANGUAGE="JavaScript"><!--
function myvoid() { }
//--></SCRIPT>

<A HREF="javascript:myvoid()" onMouseOver="window.open('apage.html','targetname','width=100,height=100'"><IMG SRC="image.gif" WIDTH="100" HEIGHT="100"></A>

©2018 Martin Webb