Jump to content


Photo

Opem up a new browser


  • Please log in to reply
1 reply to this topic

#1 otuatail

otuatail

    Advanced Member

  • Members
  • PipPipPip
  • 875 posts

Posted 29 March 2014 - 03:36 PM

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



#2 possien

possien

    Advanced Member

  • Members
  • PipPipPip
  • 80 posts
  • LocationArizona

Posted 29 March 2014 - 05:48 PM

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>

Edited by possien, 29 March 2014 - 05:52 PM.





0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com