Click to See Complete Forum and Search --> : simply confused


craign
08-18-2003, 03:47 AM
// JavaScript Document-----filam
<script language="JavaScript">
<!--script takes title and displays in staus bar
//-->
function status()
{var t = document.title
defaultStatus = t}
</script>

i would like the title to display in the status bar?
it does not do that though? i must be missing somethng.

displayed in the html in the head is
<script language="javascript" src="js_scripts/filam.js"></script>

and

<body onLoad="status()">

also maybe there is an easier way

thanks
craig

ducatigirl
08-18-2003, 03:58 AM
Hi, I just made a blank page and the hello there displays in the status bar. hope this helps.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_displayStatusMsg(msgStr) { //v1.0
status=msgStr;
document.MM_returnValue = true;
}
//-->
</script>
</head>

<body onLoad="MM_displayStatusMsg('Hello there');return document.MM_returnValue">

</body>
</html>

Charles
08-18-2003, 05:41 AM
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<meta name="Content-Script-Type" content="text/javascript">
<title>Example</title>
<body onload="window.defaultStatus = document.title">