View Full Version : hide URL from iframe in Status Bar
tcollick
07-31-2003, 12:48 PM
Hi, I have an iframe for a "stock price applet" on my website but i want to get rid of the URL on the status bar while its loading within my page. Any idea please?
glenngv
07-31-2003, 01:11 PM
why do you want to hide the URL? even if you were able to hide it in the status bar, there are other ways to get it.
tcollick
07-31-2003, 01:14 PM
Hi, im not concerned about people finding out what the URL is, but I want nothing to come up on the status bar while the iframe is loading. If anyone knows hoew please help. thanks.:)
glenngv
07-31-2003, 04:36 PM
There's nothing you can do to hide the url in the status bar while your page is loading or to put it more correctly, while the browser is trying to load the page. The fact is your html including the scripts are still being loaded so your scripts have not run yet.
You can put window.defaultStatus=' ' at the head but that will take effect only after the browser starts the (actual) rendering of the page.
Having a status message doesn't hurt and helps the user knows what's happening in the browser. But if you insist, you can just open the page in a new window with no status bar by using window.open().
tcollick
07-31-2003, 04:44 PM
Ok...thanks for your help:)
I don't recommend hiding the status. If the applet fails for a user then they won't see the error (also, I hope you are not trying to hide copyright info that the Applet is displaying) .
Anyway you could try
in the HEAD
timerId = setInterval(" self.status=' '; ", 10);
and in the iframe
<iframe src="blah.html" onload="clearInterval(timerId)">
(Not sure if onload works for iframe. May need to put the onload in the html of the document in the iframe)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.