javascript function to change status bar (advanced)

Joined
Jan 24, 2004
Messages
5
#1
ok so what i want to do is have the status bar change if the user's resolution is less than a certain size. i have come pretty far, but all i could do was get the notification i want written in on the webpage itself with the document.write command. the code currently is...
Code:
<script language="JavaScript1.2">
<!--

var actionwidth=1025
var actionheight=769
if (screen.width <actionwidth||screen.height <actionheight)
document.write("NOTICE: Your current resolution prohibits the viewing of this page as intended by the webmaster. Please increase your resolution!")
//-->
</script>
note the use of document.write and the closings of (" and ")

that all works fine and dandy on the page it self (enclosed in body), but again, i want to put this in the status bar of the user's browser. i tried window.status in place of document.write but that doesn't work. also, i have a window.defaultstatus script in the head, but i don't think that matters. one more thing, the action width and height variables are so i could test the script at my res of 1024*768.

if this isn't the place to be asking this sort of question, plz point me where to. THANKS.
 

X-Istence

*
Political User
Joined
Dec 5, 2001
Messages
6,498
#2
Some people dont allow javascript to change the status bar. I have no clue how to do it, but i suggest putting it at the bottom of the page.
 

dubstar

format c:
Joined
Dec 3, 2002
Messages
1,357
#3
if your using document.write, and thats what shows on the webpage, couldnt you just do
Code:
document.write("~status bar display code here~")
or instead of using the document.write, use document.onload
 

Members online

No members online now.

Latest profile posts

Perris Calderon wrote on Electronic Punk's profile.
Hey ep!

All good with me, applying for microsoft mvp right now, should have done this a while ago.

Notifications don't work, I only found your response by comming back to hunt up some threads, if you want, give me your email address so we can keep in touch easier, mine is perriscalderon at gmail
Perris Calderon wrote on Electronic Punk's profile.
Ep, glad to see you come back and tidy up...did want to ask a one day favor, I want to enhance my resume , was hoping you could make me administrator for a day, if so, take me right off since I won't be here to do anything, and don't know the slightest about the board, but it would be nice putting "served administrator osnn", if can do, THANKS

Been running around Quora lately, luv it there https://tinyurl.com/ycpxl
Electronic Punk wrote on Perris Calderon's profile.
All good still mate?
Hello, is there anybody in there? Just nod if you can hear me ...

Forum statistics

Threads
62,030
Messages
673,544
Members
89,038
Latest member
Samhicks