Jump to content

Archived

This topic is now archived and is closed to further replies.

joie27

question po,,

Recommended Posts

do you know how to display an error msg in the status bar instead of using msgbox..
tnx..

Share this post


Link to post
Share on other sites
Use window.status
Eg:
[code]<a href="javascript:void(0)" onMouseOver="window.status='Hello!'; return true" onMouseOut="window.status=''">Change Status Bar text!</a>[/code]

However this isnt the a good way to display errors not many people take any notice of the status bar. Also most modern browsers dont allow for the staus bar text to be changed by defualt, however the user can change this by editing the browsers settings. For example in FF you need to goto Tools > Options > Content > Advanced button to the right of 'enable javascript' > Tick 'Change Status Bar Text'. In for FF to allow javascript to change the status bar text.

Share this post


Link to post
Share on other sites
I cant remember the last time I looked at the status bar.
I might check it if a site is blank, I will check if its loading or done, thats it.
but that is rare, as there aint many Blank website pages out there

Share this post


Link to post
Share on other sites
However, this is an excellent way of debugging scripts without interfering with run-times.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.