how to open new window with unity content

i know this is javascript side in the html, but anyhow i was wondering how you guys do it

window.open?

http://wap.w3schools.com/jsref/met_win_open.asp

Combine with: http://unity3d.com/support/documentation/Manual/Unity%20Web%20Player%20and%20browser%20communication.html

is there a working script that i could look into, i am beginner with html and javascript

On unity Side:

Application.ExternalCall( “openWindow”, “www.google.com” );

On HTML side (within ):

You can try out if it works.

function OpenYHQ_01(){
window.open (“Yhq_swerfds_01.htm”, “”, “top=100,left=200,height=350, width=480, toolbar=no, menubar=no, scrollbars=no, resizable=no, location=no, status=no” );

ok, i managed to make it happen, it opens new window and it maximizes the window
here is the code:

<html><head>
<script>
function makeNewWindow() 
{ 

windowFeatures = "top=0,left=0,location=no,status=no,scrollbars=no,titlebar=no,resizable=yes,width="+(screen.width)+",height="+(screen.height); 
newWindow=window.open("test8.html","UNITY",windowFeatures)
newWindow.focus(); 
}
</script><body>
<a href="javascript:makeNewWindow()">Open</a>
</body></html>

however it does not cover the whole area of the page with unity content…at the page that has unity content i had to do this for width and height:

width=“100%” height=“100%” because i dont know what width and height of the screen user has…
is this good practice? and is there a way to get the width and height of the screen that i can use to fit the unity page
properly in the web page?

also in opera it does not open new window but tab

in most browsers it will not do anything as it will be eaten by the popup blocker

so how do you suggest it should be done? i need new window opened

reliably? you can’t.
thats the whole point of popup blockers, that people can’t create new windows at their own will. the user will decide if it shows up (browsers show a bar / icon if a popup is blocked normally)

you would need to have the page replace its own content for that matter