Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open HTML Window at Specific Size...

Status
Not open for further replies.

tyleri

Programmer
Jan 2, 2001
173
US
When I click on a button in Flash, I want it to open a new Explorer window with the following criteria:

- 400x300 in size
- centered in the middle of the screen
- no scroll bar
- no tool bars at all

Anybody have any idea how to do this with the click of a button in Flash (5)?

Thanks!
 
getURL ("javascript:window.open('pageinwindow.html','newwindow','width='+(screen.width - 10)+',height='+(screen.height - 30)+',screenX=0,screenY=0,directories=0,fullscreen=1,location=0,menubar=0,scrollbars=0,status=0,toolbar=0')");

don't quote me on it...but I think this will work for fullscreen on IE.

look up mocks open fullscreen on the web and follow that, just don't open full screen open to your defined size.

hope this helps jef
 
Hey - pretty helpful - I got the window to open - only problem - the Flash window returns "[object]" in a blank screen. I want the original flash screen to stay put... anyone have any ideas on this?

Thanks again!
 
instead of using window.open,

write a javascript funtion on the start html page and call it with getURL

so....


gerURL (javascript:popup (baba ababba etec etc.

If you can't get this going let me know,

I have the code in a old fla somewhere

hope this helps

jef
 
Regards,

oldman3.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top