Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Preventing a Window from Opening

Status
Not open for further replies.

roki

Programmer
May 14, 2001
1
GB
Hi

I have adopted a site from another programmer and I'm trying to fix a few things...

This script produces a scrollable text area using onMouseOver but when a user clicks the buttons a copy of the page is launched in a new window.

href="#" target="main" alt="Down" onFocus="if(this.blur)this.blur()" onMouseOut="CeaseScroll(); MM_swapImgRestore()" onMouseOver="PerformScroll(7);MM_swapImage('document.layers[\'divUpControl\'].document.skroll_upp','document.skroll_upp','gifs/scrollnewsd.gif','#981466837825')"

There is no OpenBrowserWindow in the page at all - how can I stop the '#' link being activated?

Thanks a lot for your time.

If you want to see the page goto:
 
Hi roki,

You should take off the 'target="main"'
and correct href="#" to href="javascript:void(0)"

hope this helps,
Chiu Chan
WebMaster & Software Engineer
emagine solutions, inc
cchan@emagine-solutions.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top