Copy link to clipboard
Copied
As my head says how can I stop this annoying behavior?
An example of my code:
<a href="#" onClick="MM_openBrWindow('winning_moves_stts/groot.html','','width=320px,height=200px')" onMouseOver="MM_swapImage('Groot','','images/stts/draxback.gif',1)" onMouseOut="MM_swapImgRestore()"><img id="Groot" src="images/stts/groot.gif" alt="Groot"></a>
Thank you in advance!
Have you try adding a return false, at the end of the click listener... ?
that way
<a href="#" onClick="MM_openBrWindow('winning_moves_stts/groot.html','','width=320px,height=200px'); return false;" onMouseOver="MM_swapImage('Groot','','images/stts/draxback.gif',1)" onMouseOut="MM_swapImgRestore()">
Copy link to clipboard
Copied
<a href="#"
You could give your href a valid URL and ID on the target page.
Copy link to clipboard
Copied
Nancy, do you mean like link it to itself?
<a href="http://www.ultimate-top-trumps.co.uk/'webpage'#groot" onClick="MM_openBrWindow('winning_moves_stts/groot.html','','width=320px,height=200px')" onMouseOver="MM_swapImage('Groot','','images/stts/draxback.gif',1)" onMouseOut="MM_swapImgRestore()"><img id="Groot" src="images/stts/groot.gif" alt="Groot"></a>
Copy link to clipboard
Copied
I'm not sure what your goal is. A link usually takes people to some destination, either on the same page, a new page or an external link.
3 LINKS EXAMPLE:
<a href="#uniqueID">Same Page</a>
|
<a href="some_page.html#uniqueID">New Page & ID</a> |
<a href="https://example.com">External link</a>
<div id="uniqueID">This is a division with a unique ID.</div>
Copy link to clipboard
Copied
The links take you to another page so I am thinking that the second link is the one I need.
Copy link to clipboard
Copied
Have you try adding a return false, at the end of the click listener... ?
that way
<a href="#" onClick="MM_openBrWindow('winning_moves_stts/groot.html','','width=320px,height=200px'); return false;" onMouseOver="MM_swapImage('Groot','','images/stts/draxback.gif',1)" onMouseOut="MM_swapImgRestore()">
Copy link to clipboard
Copied
Ah, that works and its simple to do!
Thanks Birnou!