Jump to content

Opem up a new browser


otuatail

Recommended Posts

Hi I am not wet behind the ears with web design so constructive ideas only please.

 

target=blank is ok for most people. Using internet explorer 11, If I use  it creates a new tab in the browser but some like the BBC < a UK company> open up an internet on line listening service for anyone in the world, PROBLEM. This does not open up as an extra tab in IE it opens up a totally separate windows/browser window.

 

Can I do this even if it is a pop up help. Preferably taking data session variables etc with it

 

Hope this makes sense. Nice replies appreciated.

 

Desmond

Link to comment
https://forums.phpfreaks.com/topic/287385-opem-up-a-new-browser/
Share on other sites

I found without providing height and width it opens a new tab but this opens a new window:

<script type="text/javascript" >
function myfunction(){
window.open("http://example.com","mywindow","menubar=1,resizable=1,width=650,height=550");
}
</script>

You can add or delete parameters to hide status bars, menus, etc.  You can add a button or text like this to open the new window:

<a onclick="myfunction()">New Site</a>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.