Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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

irt.org | Knowledge Base | JavaScript | Link | Q230 [ previous next ]

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

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 30th March 2008. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2008 irt.org, All Rights Reserved.