Sometimes we need to have a link go to http://www.mydomain.com but we want to show http://www.my-
other-domain.com in the status line when someone moves the mouse over the link.
Here is how you do it :
<HTML>
<HEAD>
<SCRIPT>
<!--
function Min(str){
window.status=str;
return true;
}
function Mout(){
window.status='';
}
//-->
</SCRIPT>
</HEAD>
<BODY>
<A HREF="http://www.weberdev.com" onMouseOver="return Min('go to www.php.co.il')" onMouseOut="Mout
()" TARGET="_BLANK">Click Here</A>
</BODY>
</HTML>
matthew waygood wrote :991
Alternatively to be a little more robust you could save the existing status message and return it back again when you are through.
var keep;
window.status="this is a test";
function Min(str){
keep=window.status;
window.status=str;
return true;
}
function Mout(){
window.status=keep;
return true;
}