i have this page http://sulferias.com/altera_img.asp With the body onload
event that must set the window with no toolbar etc...
but doesn´t work . where is the problem??

thanks

Re: hide toobar & menubar by David

David
Tue Nov 07 10:09:26 CST 2006

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.




"led" <tabemta@tabemta.com> wrote in message
news:u%23tSnGoAHHA.4992@TK2MSFTNGP03.phx.gbl...
>i have this page http://sulferias.com/altera_img.asp With the body onload
>event that must set the window with no toolbar etc...
> but doesn´t work . where is the problem??
>
> thanks
>
>



Re: hide toobar & menubar by led

led
Tue Nov 07 11:01:57 CST 2006

but i need to be open in a new window



"David Berry" <dberry@mvps.org> escreveu na mensagem
news:e5tmWcoAHHA.3560@TK2MSFTNGP04.phx.gbl...
> 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.
>
>
>
>
> "led" <tabemta@tabemta.com> wrote in message
> news:u%23tSnGoAHHA.4992@TK2MSFTNGP03.phx.gbl...
>>i have this page http://sulferias.com/altera_img.asp With the body onload
>>event that must set the window with no toolbar etc...
>> but doesn´t work . where is the problem??
>>
>> thanks
>>
>>
>
>



Re: hide toobar & menubar by Thomas

Thomas
Tue Nov 07 11:07:23 CST 2006

That does open a page in a new window.

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


"led" <tabemta@tabemta.com> wrote in message news:OSxQv5oAHHA.3560@TK2MSFTNGP04.phx.gbl...
> but i need to be open in a new window
>
>
>
> "David Berry" <dberry@mvps.org> escreveu na mensagem news:e5tmWcoAHHA.3560@TK2MSFTNGP04.phx.gbl...
>> 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.
>>
>>
>>
>>
>> "led" <tabemta@tabemta.com> wrote in message news:u%23tSnGoAHHA.4992@TK2MSFTNGP03.phx.gbl...
>>>i have this page http://sulferias.com/altera_img.asp With the body onload event that must set
>>>the window with no toolbar etc...
>>> but doesn´t work . where is the problem??
>>>
>>> thanks
>>>
>>>
>>
>>
>
>



Re: hide toobar & menubar by Jon

Jon
Tue Nov 07 11:07:54 CST 2006

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

Cheers,
Jon

"David Berry" <dberry@mvps.org> wrote in message
news:e5tmWcoAHHA.3560@TK2MSFTNGP04.phx.gbl...
> 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.
>
>
>
>
> "led" <tabemta@tabemta.com> wrote in message
> news:u%23tSnGoAHHA.4992@TK2MSFTNGP03.phx.gbl...
>>i have this page http://sulferias.com/altera_img.asp With the body onload
>>event that must set the window with no toolbar etc...
>> but doesn´t work . where is the problem??
>>
>> thanks
>>
>>
>
>



Re: hide toobar & menubar by David

David
Tue Nov 07 11:14:28 CST 2006

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.


"Jon Spivey" <jon@NotThis-Nisusnewmedia.com> wrote in message
news:%23QevG9oAHHA.1224@TK2MSFTNGP04.phx.gbl...
> That will error out on IE7 though. It blocks the window.opener=self trick
>
> Cheers,
> Jon
>
> "David Berry" <dberry@mvps.org> wrote in message
> news:e5tmWcoAHHA.3560@TK2MSFTNGP04.phx.gbl...
>> 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.
>>
>>
>>
>>
>> "led" <tabemta@tabemta.com> wrote in message
>> news:u%23tSnGoAHHA.4992@TK2MSFTNGP03.phx.gbl...
>>>i have this page http://sulferias.com/altera_img.asp With the body
>>>onload event that must set the window with no toolbar etc...
>>> but doesn´t work . where is the problem??
>>>
>>> thanks
>>>
>>>
>>
>>
>
>



Re: hide toobar & menubar by David

David
Tue Nov 07 11:16:38 CST 2006

If all you want is a new pop up windows from an existing page then that
script isn't what you want. Go to http://javascript.internet.com and under
navigation look for pop up windows or download Spawn from
http://www.jimcosoftware.com/addins.aspx (it's free)


"led" <tabemta@tabemta.com> wrote in message
news:OSxQv5oAHHA.3560@TK2MSFTNGP04.phx.gbl...
> but i need to be open in a new window
>
>
>
> "David Berry" <dberry@mvps.org> escreveu na mensagem
> news:e5tmWcoAHHA.3560@TK2MSFTNGP04.phx.gbl...
>> 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.
>>
>>
>>
>>
>> "led" <tabemta@tabemta.com> wrote in message
>> news:u%23tSnGoAHHA.4992@TK2MSFTNGP03.phx.gbl...
>>>i have this page http://sulferias.com/altera_img.asp With the body
>>>onload event that must set the window with no toolbar etc...
>>> but doesn´t work . where is the problem??
>>>
>>> thanks
>>>
>>>
>>
>>
>
>