Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap

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 ]


<script language="JavaScript"><!--
function myStatus(text) {
    window.status = text;

<input type="text" name="myText" value="Text to display goes in here">
<input type="button" value="Click Me" onClick="myStatus(this.form.myText.value)">

©2018 Martin Webb