Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > disable title bar, status bar, and address bar of a window

Reply
Thread Tools

disable title bar, status bar, and address bar of a window

 
 
Matt
Guest
Posts: n/a
 
      08-21-2004
I want to disable the title bar, status bar and address bar of a
window, I don't know what is the correct approach.
I tried the following but not working. any ideas??

Is there any approach using HTML in my problem?

<html>
<title>hey</title>
<script type="text/javascript">
function disablestatusbar()
{
window.document.statusbar.enable = false;
}
</script>
<body onload="disablestatusbar()">
</body>
</html>
 
Reply With Quote
 
 
 
 
Toby Inkster
Guest
Posts: n/a
 
      08-21-2004
Matt wrote:

> I tried the following but not working. any ideas??
> window.document.statusbar.enable = false;


How about:

Stop making things up entirely at random and just expecting
them to work.

There is (AFAIK) no way to disable toolbars on your visitor's browser
window short of paying a visit to his house, right-clicking on them and
turning them off.

You *can* however open a new window without these toolbars. But don't. The
status bar is useful for displaying the status, so chances are that most
of your visitors won't appreciate it being removed.

Now how about telling us what the actual problem you're trying to solve
is, and not telling us about your broken idea for a solution?

--
Toby A Inkster BSc (Hons) ARCS
Contact Me ~ http://tobyinkster.co.uk/contact
Now Playing ~ ./red_hot_chilli_peppers/californication.ogg

 
Reply With Quote
 
 
 
 
Steve Pugh
Guest
Posts: n/a
 
      08-21-2004
http://www.velocityreviews.com/forums/(E-Mail Removed) (Matt) wrote:

>I want to disable the title bar, status bar and address bar of a
>window,


Why?

>I don't know what is the correct approach.


Turn those things off in _your_ browser configuration. Whatever your
reasons for wanting to get rid of them I can assure that at least some
of your visitors won't agree and will want to have those items
present.

Did you know that one of the security updates in XP SP2 is to make it
much more difficult to hide the status bar of new windows?

>I tried the following but not working. any ideas??


There is no such property as window.document.statusbar.enable in any
browser that I know of. Netscape has window.statusbar.visible but that
(a) doesn't exist in IE, etc. and (b) requires a signed script to
maniuplate.

When creating new windows via window.open you can set it that
statusbar and locationbar aren't shown (subject to browser security
concersn such as the one mentioned above) but the titlebar is trickier
to remove.

>Is there any approach using HTML in my problem?


No. HTML is a page markup language it doesn't concern itself at all
with whatever the browser is displaying outside the page.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <(E-Mail Removed)> <http://steve.pugh.net/>
 
Reply With Quote
 
WebcastMaker
Guest
Posts: n/a
 
      08-21-2004
In article <(E-Mail Removed) >,
(E-Mail Removed) says...
> I want to disable the title bar, status bar and address bar of a
> window, I don't know what is the correct approach.
> I tried the following but not working. any ideas??


Unless there is a specific application for this for example, launching a
webcast, it is probably not a good idea. Having said that, you have to
do this when you open the window. Google "popup window" and you will
have your answer.

--
WebcastMaker
Webcasting for free
http://www.webentations.com
 
Reply With Quote
 
Neal
Guest
Posts: n/a
 
      08-21-2004
On 21 Aug 2004 08:05:55 -0700, Matt <(E-Mail Removed)> wrote:

> I want to disable the title bar, status bar and address bar of a
> window, I don't know what is the correct approach.
> I tried the following but not working. any ideas??
>
> Is there any approach using HTML in my problem?
>
> <html>
> <title>hey</title>
> <script type="text/javascript">
> function disablestatusbar()
> {
> window.document.statusbar.enable = false;
> }
> </script>
> <body onload="disablestatusbar()">
> </body>
> </html>


I want all your windows and doors in your house to lock and not let you
out while you visit my pages. The heat should go on as well. I'd like to
do that in HTML only if possible.

Even if I could do that, wouldn't you find that invasive and wrong? So
your house, my browser - what's the difference?
 
Reply With Quote
 
WebcastMaker
Guest
Posts: n/a
 
      08-21-2004
In article <(E-Mail Removed)>, (E-Mail Removed)
says...
> I want all your windows and doors in your house to lock and not let you
> out while you visit my pages...


I love reading all he completely unrelated examples people come up
with...

It' a damn browser, use a popup blocker and be done with it. If the
worst thing in your life is a popup window, consider yourself lucky.
--
WebcastMaker
Webcasting for free
http://www.webentations.com
 
Reply With Quote
 
Neal
Guest
Posts: n/a
 
      08-22-2004
On Sat, 21 Aug 2004 16:10:19 -0400, WebcastMaker <(E-Mail Removed)> wrote:

> It' a damn browser, use a popup blocker and be done with it. If the
> worst thing in your life is a popup window, consider yourself lucky.



Oh, my popups are blocked. But when a web designer erroneously makes a
popup window essential for using the site, I lose out, and therefore the
site owner loses out. That's why popups are a bad idea - even if the
user's setup ignores them, they are usually the only way to use the site.

Now, I can find another site, but I'm a nice guy and I'd like it if
authors recognized that popups are disaster, as avoiding them is better
for everyone.
 
Reply With Quote
 
SpaceGirl
Guest
Posts: n/a
 
      08-22-2004
Matt wrote:

> I want to disable the title bar, status bar and address bar of a
> window, I don't know what is the correct approach.
> I tried the following but not working. any ideas??
>
> Is there any approach using HTML in my problem?
>
> <html>
> <title>hey</title>
> <script type="text/javascript">
> function disablestatusbar()
> {
> window.document.statusbar.enable = false;
> }
> </script>
> <body onload="disablestatusbar()">
> </body>
> </html>


While not really good practice, it can be done, but only by opening a
new browser window via script.

Google for the window.open() event - this has many parameters that you
can pass to it to control the way an average browser window behaves.
However, you have no control over a window that you have not opened
through a script.



--


x theSpaceGirl (miranda)

# lead designer @ http://www.dhnewmedia.com #
# remove NO SPAM to email, or use form on website #
 
Reply With Quote
 
cefm
Guest
Posts: n/a
 
      08-23-2004

"Neal" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> On Sat, 21 Aug 2004 16:10:19 -0400, WebcastMaker <(E-Mail Removed)> wrote:
>
>> It' a damn browser, use a popup blocker and be done with it. If the
>> worst thing in your life is a popup window, consider yourself lucky.

>
>
> Oh, my popups are blocked. But when a web designer erroneously makes a
> popup window essential for using the site, I lose out, and therefore the
> site owner loses out. That's why popups are a bad idea - even if the
> user's setup ignores them, they are usually the only way to use the site.
>
> Now, I can find another site, but I'm a nice guy and I'd like it if
> authors recognized that popups are disaster, as avoiding them is better
> for everyone.


Do popup blockers block only script pop-ups? (i.e. Javascript)

or do they block like umm.. < a href="somepage.html" target="_blank"> as
well?


 
Reply With Quote
 
Neal
Guest
Posts: n/a
 
      08-23-2004
On Mon, 23 Aug 2004 19:47:39 GMT, cefm <(E-Mail Removed)>
wrote:


> Do popup blockers block only script pop-ups? (i.e. Javascript)
>
> or do they block like umm.. < a href="somepage.html" target="_blank"> as
> well?
>
>



Depends. The best ones block anything.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
changing title & removing status bar from a pop up window prash.marne@gmail.com Javascript 2 03-11-2007 04:04 PM
javascript to disable the title bar, status bar, and address bar of a window Matt Javascript 9 08-23-2004 01:23 PM
Re: disable title bar, status bar, and address bar of a browser window John Hann ASP .Net 0 08-21-2004 05:07 AM
disable title bar, status bar, and address bar of a browser window Matt ASP .Net 0 08-21-2004 03:50 AM
Open in Title-Bar-Scroll-Bar-Only Window? George ASP .Net 4 02-13-2004 09:29 AM



Advertisments