Forum Moderators: open

Message Too Old, No Replies

Hide link in status bar on mouseover?

         

keyplyr

4:24 am on Jan 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



How can a link address (internal) be hidden from displaying in the status bar while mouseover in IE and other browsers? Thanks.

tedster

4:32 am on Jan 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I think JavaScript in the anchor element would do it.

<A HREF="page.html" onMouseOver="window.status='';return true" onMouseOut="window.status='';return true">internal link</a>

That's two SINGLE quotes after window.status=

keyplyr

4:35 am on Jan 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks Tedster, as you were posting I was coding and came up with the same thing:

onMouseOver="window.status=\'\'; return true;" onMouseOut="window.status=\'\'; "

Is that last "return true" really needed?

tedster

5:42 am on Jan 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The script doesn't work in IE without the first "return true", but you're right, the second one is not needed.

In fact, (just tested this) the script doesn't work either way on Opera 7. Opera has a way of not listening to repressive scripts. For example, you can always resize a new window in Opera, no matter what the javascript says.

keyplyr

6:28 am on Jan 11, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Thanks, I wouldn't have known that about Opera, but as browsers evolve to empower the user experience, it's as expected.