Click to See Complete Forum and Search --> : Text input to status bar...


dali_dogz112
10-17-2003, 01:28 PM
How do I write a code so that the text in a textbox is put into the MSIE status bar when I click submit? I've been wanting to know this for ages.

ccoder
10-17-2003, 01:39 PM
function displayStatus(statusMsg)
{

self.defaultStatus = statusMsg;

}

will display the string that is passed.

fredmv
10-19-2003, 06:31 PM
Something like this? :cool:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>untitled</title>
<meta http-equiv="Content-Type" content="application/xhtml+xml; charset=iso-8859-1" />
</head>
<body>
<div>
<input type="text" />

<input type="button" onclick="window.status = document.getElementsByTagName('input')[0].value;" value="write in status bar" />
</div>
</body>
</html>I hope that helps you out.