Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org
#

Q519 How do I pass text from a text field to a function so that it displays on the status bar?

You are here: irt.org | FAQ | JavaScript | Status | Q519 [ previous next ]

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>

©2018 Martin Webb