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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

no status bar help 1

Status
Not open for further replies.

xstranded

Technical User
Oct 26, 2003
15
US
Greetings everyone... i've been trying to figure out how to get rid of the status bar when someone visits my website. if someone could help me that would be great :) thank you very much
 
I think you would need to open a new window in order to do hide the status bar using:

window.open(url,'name','toolbar=no,width='+w+',height='+h+',directories=no,status=yes,scrollbars=no,resize=no,menubar=no,top='+yPos+',left='+xPos);

w,h,xpos,ypos are preset after checking screen size etc.

ASCII silly question, get a silly ANSI
 
Hi... thank you for the help...


that's my website if you would like to check it out. umm, now what i get is the box opening in the middle and not full screen. i would like it to open fully... how exactly would i do that?
 
Actually i'm having a little problem trying to make this work. do you think you could assit me on putting the code in action :) thank you very much

-Nguyen
 
try this, it set window size according to the screen size.

window.open(url,'name','toolbar=no,width='+screen.width-10+',height='+screen.height-30+',directories=no,status=no,menubar=no,scrollbars=no,resize=no,top=0,left=0);

 
hi, ok i'm still not sure how the whole tag would go. would it look like this

<a href= &quot;x&quot; window.open(x2.html,'name','toolbar=no,width='+screen.width-10+',height='+screen.height-30+',directories=no,status=no,menubar=no,scrollbars=no,resize=no,top=0,left=0);></a>

-Nguyen
 
You really should use the window.open(); inside a
function. And then call the function.

function nwwin() {
......
}

to call the function use the onClick event

<a href=&quot;#&quot; onClick=&quot;javascript:nwwin();&quot;>New Window</a>

There are some good FAQ's on the subject:




Here is a working example in the FAQ's:

2b||!2b
 
I move the window.open to a function to make it easier to read:

Code:
<script laugnage=&quot;javascript&quot;>
function openMain() {
   window.open('x2.html','name','toolbar=no,width='+ (screen.width-10) + ',height=' + (screen.height-30) + ',directories=no,status=no,menubar=no,scrollbars=no,resize=no,top=0,left=0');
}
</script>

then in the link you put somehting like.

<a href=&quot;#&quot; onclick=&quot;openMain()&quot;>Enter</a>
 
to do that you'd have to open it up in another window. You can't make the status bar disapear on a normal broswer window. Now if you open it up in another window with no status bar present then its all good. Heres a source code i just pasted in a different subject but it will work for you. Just adjust the window size unless full screen works for you.



<!-- TWO STEPS TO INSTALL FULLSCREEN WINDOW:

1. Copy the coding into the HEAD of your HTML document
2. Add the last code into the BODY of your HTML document -->

<!-- STEP ONE: Paste this code into the HEAD of your HTML document -->

<HEAD>

<SCRIPT LANGUAGE=&quot;JavaScript&quot;>

<!-- Begin
function openFullscreen(page) {
var yes = 1;
var no = 0;

var menubar = no; // The File, Edit, View Menus
var scrollbars = no; // Horizontal and vertical scrollbars
var locationbar = no; // The location box with the site URL
var directories = no; // the &quot;What's New&quot;, &quot;What Cool&quot; links
var resizable = no; // Can the window be resized?
var statusbar = no; // Status bar (with &quot;Document: Done&quot;)
var toolbar = no; // Back, Forward, Home, Stop toolbar

windowprops = &quot;width=&quot; + (screen.width-10) + &quot;,height=&quot; + (screen.height-50) + &quot;,top=0,left=0&quot;;

windowprops += (menubar ? &quot;,menubars&quot; : &quot;&quot;) +
(scrollbars ? &quot;,scrollbars&quot; : &quot;&quot;) +
(locationbar ? &quot;,location&quot; : &quot;&quot;) +
(directories ? &quot;,directories&quot; : &quot;&quot;) +
(resizable ? &quot;,resizable&quot; : &quot;&quot;) +
(statusbar ? &quot;,status&quot; : &quot;&quot;) +
(toolbar ? &quot;,toolbar&quot; : &quot;&quot;);

window.open(page, 'fullPopup', windowprops);
}
// End -->
</script>
</HEAD>

<!-- STEP TWO: Copy this code into the BODY of your HTML document -->

<BODY>

<center>
<form>
<input type=button value=&quot;Open Fullscreen Page&quot; onClick=&quot;openFullscreen(' </form>
</center>

<p><center>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top