...

View Full Version : how can i onLoad for the status bar to be shown?



canadianjameson
06-15-2004, 09:13 PM
i need the users to see info in the status bar on one page i'm working on.... can i force it to appear?

Mr J
06-15-2004, 09:47 PM
Sure, use


window.status='Hello World'

canadianjameson
06-15-2004, 11:56 PM
and that will force the browser to show the status bar, even if they have the option unclicked in "view"?

Mr J
06-16-2004, 12:25 AM
Ah, but you did not say to show the status bar you said to show info in the status bar.

The only way you could ensure that the status bar is shown is to use a new window

canadianjameson
06-16-2004, 12:54 AM
now while i understand that you can force a status bar on a new window, can you not do the same thing using the <body onLoad""> function?

i mean, from a purely logical point of view that's what you're doing when you open a new window aren't you... you're just defining the parameters of the environment in which your page is shown... so why can't it be done on the main page in the statement that is activated when the page loads (onLoad)?

ReadMe.txt
06-16-2004, 02:10 AM
I'd be a little hesitant to try and go around forcing changes like that onto a user's browser, altho i'd be even more hesitant to turn off my status bar (site note: does anyone know how to enable status bar as defaul in my Docs etc on win XP?)

could you perhaps absolutely position an element at the bottom of the screen and then alter that?

Another point is that while window.status will change the status bar, if the UA changes it it (hovering over a link etc) it will not revert to what you have set, try window.defaultStatus instead.

according to http://www.devguru.com/Technologies/ecmascript/quickref/window.html

self.statusbar.visible = true;

should do the trick nicely. Untested so dont ask me about browser compatibility though.

canadianjameson
06-16-2004, 03:42 AM
do i put self.statusbar.visible = true; in the <body onLoad="">?

i.e <body onLoad="self.statusbar.visible = true;">?
...
apparently not :rolleyes: ... where do i stick this beast?

it only needs to work in I.E

canadianjameson
06-16-2004, 03:54 AM
also, once i get the status bar to appear when i want it to, i'm going to try to write a JS script to read the user's current status of the status bar (on or off)... if its on i'll leave it, but if it's off i'll turn it on, and then onPageExit i'll revert it back to off so to not annoy people who actually choose to keep it off.

glenngv
06-16-2004, 07:06 AM
do i put self.statusbar.visible = true; in the <body onLoad="">?

i.e <body onLoad="self.statusbar.visible = true;">?
...
apparently not :rolleyes: ... where do i stick this beast?

it only needs to work in I.E
Unfortunately, that only works in NS/Moz.

I don't know there is a setting in IE to hide the status bar. Where is it?

canadianjameson
06-16-2004, 05:25 PM
boo... okay, i'll drop the idea.... i didn't really need it as a core function of the page, i just have extra instructions appearing in the status bar.

Thanks for trying guys.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum