Home Articles FAQs XREF Games Software Instant Books About Feedback Search Site-Map
irt.org logo

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>

Provide feedback ...
AddThis Social Bookmark Button

Provide feedback ... AddThis Social Bookmark Button


Last Updated: 6th July 2009. Maintained by: Martin Webb and Michel Plungjan
irt.org liability, trademark, document use, privacy statement and software licensing rules apply.
Copyright © 1996-2009 irt.org, All Rights Reserved.