|
Q519 How do I pass text from a text field to a function so that it displays on the status bar?
irt.org | Knowledge Base | JavaScript | Status | Q519 [ previous next ]
Q519 How do I pass text from a text field to a function so that it displays on the status bar?
Try:
<script language="JavaScript"><!--
function myStatus(text) {
window.status = text;
}
//--></script>
<form>
<input type="text" name="myText" value="Text to display goes in here">
<input type="button" value="Click Me" onClick="myStatus(this.form.myText.value)">
</form>
|
|
|
Copyright © 1996-2009 irt.org, All Rights Reserved.