/    Sign up×
Community /Pin to ProfileBookmark

Text input to status bar…

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.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@ccoderOct 17.2003 — <i>
</i>function displayStatus(statusMsg)
{

self.defaultStatus = statusMsg;

}

will display the string that is passed.
Copy linkTweet thisAlerts:
@fredmvOct 19.2003 — Something like this? ?
&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;

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

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

Success!

Help @dali_dogz112 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.2,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,
)...