Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to hide status bar?

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
I'm not sure what the code is to hide the status bar below Internet Explorer. It's the bar that also shows web addresses, so if you happen to know the code, please let me know.



Thank you.
 
Why do you want to hide the status bar?
colorado.gif
"Quest for the Cup - 2002!"​
 
I want to hide it because I don't want curious eyes showing the HTML source and grab my codes. Where would be a nice place to look for that code?
 
OK, there is a post about hiding source code, and it shows how nothing can hide your source code, certain things will deter people but not stop the people. And what's the point of hiding the address bar, you can right click anywhere on the page and goto properties, and it will show the web address, and if you right-click you can goto show source. Also web pages are cached, so you can always access them from Temporary Internet Files. You may be thinking now, how do I disable right-clciking? Don't even bother thinking about it, all you have to do is turn off Javascript and your no right click script will be ignored. This subject has been done to death.

But here is the code for a popup window that doesn't display any of the bars (you can modify it freely):

<SCRIPT LANGUAGE=&quot;Javascript&quot;>
function popUP()
{
window.open(&quot;popup.html&quot;,&quot;Pop-Up&quot;,&quot;toolbar=no,location=no,directories=no,status=no,&quot; + &quot;menubar=no,scrollbars=yes,resizable=yes,&quot; + &quot;width=300,height=300,screenX=0,screenY=0&quot;)
}
</SCRIPT>

Now to call the function from a button:

<FORM>
<INPUT TYPE=&quot;BUTTON&quot; NAME=&quot;POPUP WINDOW&quot; VALUE=&quot;CLICK HERE&quot; onClick=&quot;popUP&quot;>
</FORM>

Hope this helps!
colorado.gif
&quot;Quest for the Cup - 2002!&quot;​
 
Why this code is not opening the new window..



<HTML>
<HEAD>
<script language=&quot;JavaScript&quot;>
<!--
function popUP()
{

window.open(&quot;frames.html&quot;,&quot;Pop-Up&quot;,&quot;toolbar=no,location=no,directories=no,status=no,&quot; + &quot;menubar=no,scrollbars=yes,resizable=yes,&quot; + &quot;width=300,height=300,screenX=0,screenY=0&quot;);
}
//-->
</SCRIPT>
</HEAD>

<BODY>
<FORM>
<INPUT TYPE=&quot;BUTTON&quot; NAME=&quot;POPUP WINDOW&quot; VALUE=&quot;CLICK HERE&quot; onClick=&quot;popUP&quot;>
</FORM>
</BODY>
</HTML>
 
'How to hide status bar?'

in <body>

Code:
OnLoad=&quot;window.defaultStatus=' ';&quot;

each <a>

Code:
OnMouseOver=&quot;window.status=' ';return true;&quot;
OnmouseOut=&quot;window.status=' ';&quot;

or u could just do (not tested)

Code:
OnMouseOver=&quot;window.status=window.defaultStatus;return true;&quot;
OnmouseOut=&quot;window.status=window.defaultStatus;&quot;

but i have to agree with 'SPYDERIX'
ITS IMPOSSIBLE TO HIDE CLIENT SIDE CODE
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Oh oops, it doesn't work b/c I screwed one tiny thing up in the <INPUT TAG>

should be this:

<FORM>
<INPUT TYPE=&quot;BUTTON&quot; NAME=&quot;POPUP WINDOW&quot; VALUE=&quot;CLICK HERE&quot; onClick=&quot;popUP()&quot;>
</FORM>

I forgot to add ().

Sorry, it will work now.
colorado.gif

&quot;Quest for the Cup - 2002!&quot;
&quot;Onto the 2nd round!&quot;

 
Code:
window.open(&quot;frames.html&quot;,&quot;Pop-Up&quot;,&quot;toolbar=no,location=no,directories=no,status=no,&quot; + &quot;menubar=no,scrollbars=yes,resizable=yes,&quot; + &quot;width=300,height=300,screenX=0,screenY=0&quot;);

should be

Code:
window.open(&quot;frames.html&quot;,&quot;Pop-Up&quot;,&quot;toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=300,height=300,screenX=0,screenY=0&quot;);

no ?
wmail.jpg


someone knowledge ends where
someone else knowledge starts
 
Here I just tested this and it works, copy and paste it in directly. Is your frames page actually called frames.html. Check that out, also make sure the extension is .html and not .HTML Case matters sometimes.

<HTML>
<HEAD>
<SCRIPT LANGUAGE=&quot;Javascript&quot;>
function popUP()
{
window.open(&quot;frames.html&quot;,&quot;Alert&quot;,&quot;toolbar=no,location=no,directories=no,status=no,&quot; + &quot;menubar=no,scrollbars=no,resizable=no,&quot; + &quot;width=715,height=115,screenX=149,screenY=311&quot;)
}
</SCRIPT>
</HEAD>

<BODY>
<FORM>
<INPUT TYPE=&quot;BUTTON&quot; VALUE=&quot;CLICK HERE&quot; onClick=&quot;popUP()&quot;>
</FORM>
</BODY>
</HTML>

Hope this helps!
PS-I'm using IE-6.0 and it works, also used Netscape 4.7, and Netscape 6.2 and they all work properly.
colorado.gif

&quot;Quest for the Cup - 2002!&quot;
&quot;Onto the 2nd round!&quot;

 
one other thing, it may be b/c I'm calling the function popUP. Try renaming it to

function popupmywindow()

and

onClick=&quot;popupmywindow()&quot;

Hope this helps!
colorado.gif

&quot;Quest for the Cup - 2002!&quot;
&quot;Onto the 2nd round!&quot;

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top