Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1104
  • Last Modified:

Hide the toolbar in current window

When my html page loads on the broser i dont want the toolbar to appear on my browser so i added the statement

self.toolbar.visible=false;


in my html, but the browser gives a javascript error saying that

"self.toolbar is not an object".

What might be the problem?
How can i correct it?

My Html Code

<Html>
      <Body>
        <H1>Hello World!</H1>
        <Script Language="JavaScript">
           self.toolbar.visible=false;
        </Script>
      </Body>
</Html>


0
LotsOfQuestions
Asked:
LotsOfQuestions
1 Solution
 
jbirkCommented:
The correct syntax is:
window.toolbar.visibility = false;
But that requires a signed script to work and only works in Netscape.

ANother solution which is only netscape but doesn't need to be signed would be to put this at the head of your document:
<SCRIPT language="JavaScript">
<!--
window.open('','_top','toolbar=no,menubar,location,resizable,status')
// -->
</SCRIPT>

-Josh
0

Featured Post

Get your problem seen by more experts

Be seen. Boost your question’s priority for more expert views and faster solutions

Tackle projects and never again get stuck behind a technical roadblock.
Join Now