hide toobar & menubar

D

David Berry

You could do it like this:

<script language="JavaScript" type="text/javascript">
if(window.name!='VW'){
window.opener=self; //
newwin=window.open(self.location,'VW','menubar=no,'
+'resizable=no,status=no,scrollbars=no');
window.close();
}
</script>

(you don't know need the Body OnLoad)

But there are a couple problems. The first is that IE may treat it as a pop
up and you'll get one of those messages to allow blocked content and the
second is that your visitors will have no way to get "back" to other sites
so you may find that they visit once but never again. Personally I wouldn't
do this.
 
L

led

but i need to be open in a new window



David Berry said:
You could do it like this:

<script language="JavaScript" type="text/javascript">
if(window.name!='VW'){
window.opener=self; //
newwin=window.open(self.location,'VW','menubar=no,'
+'resizable=no,status=no,scrollbars=no');
window.close();
}
</script>

(you don't know need the Body OnLoad)

But there are a couple problems. The first is that IE may treat it as a
pop up and you'll get one of those messages to allow blocked content and
the second is that your visitors will have no way to get "back" to other
sites so you may find that they visit once but never again. Personally I
wouldn't do this.
 
T

Thomas A. Rowe

That does open a page in a new window.

--
==============================================
Thomas A. Rowe
Microsoft MVP - FrontPage
==============================================
Agents Real Estate Listing Network
http://www.NReal.com
==============================================
 
J

Jon Spivey

That will error out on IE7 though. It blocks the window.opener=self trick

Cheers,
Jon
 
D

David Berry

Thanks Jon. I only tested it in IE6. Also, other browsers (like Netscape)
have different object models so it may not work in those either.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top