Click to See Complete Forum and Search --> : Altering the text displayed in browser status bar


SAFX
02-19-2003, 10:13 AM
If I mouse over a link, such as the following...

<a href="javascript:createNewReview( '500', '2002', 'userId');">

...the status bar along the bottom edge of the browser will display "javascript:createNewReview( '500', '2002', 'userId');". Is there a way to control what is displayed on the status bar? I'd like to display a message that is not so revealing, such as "Create a new Evaluation" instead of display sensitive information, such as the employee id, year, and userId from above.

Thanks

CrazyGaz
02-19-2003, 10:18 AM
using window.status will do that

<a href="javascript:createNewReview( '500', '2002', 'userId');" onMouseOver="window.status='TEXT YOU WISH TO DISPLAY'; return true"
onMouseOut="window.status=''; return true>

I Think that'll do it.

-Gaz-

dab100
02-19-2003, 10:31 AM
You can also use onmouseout to change the status bar back to something you want to display when not on mouse over


<a href="javascript:createNewReview( '500', '2002', 'userId');" onmouseout="window.status='welcome to my homepage or what ever you want'; return true;" onmouseover="window.status='My comments here'; return true;">

SAFX
02-19-2003, 10:49 AM
Yes, it works! Thanks a lot dude!

This is a great site! Quick answers! Thanks again :D

SAFX