# How to open an html page fullscreen from flash

**URL:** <https://forum.kirupa.com/t/how-to-open-an-html-page-fullscreen-from-flash/73498>\
**Category:** flash\
**Created:** [December 16, 2004, 9:48pm UTC](https://forum.kirupa.com/t/how-to-open-an-html-page-fullscreen-from-flash/73498 "2004-12-16T21:48:47Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![neiro](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@neiro](https://forum.kirupa.com/u/neiro)\
**Post date:** [December 16, 2004, 9:48pm UTC](https://forum.kirupa.com/t/how-to-open-an-html-page-fullscreen-from-flash/73498/1 "2004-12-16T21:48:47Z")

</div>

I am trying to get a flash button to open full screen with the titlebar still on top. I was able to get it to work when I am using an html button, but I cant get it to work using flash.

here is what I have.

AS:  
on (press)  
getURL(“javascript:openBrWindow(‘[http://www.whiskeyparknorth.com/whiskeyparknorth/index.htm’,'winFeatures](http://www.whiskeyparknorth.com/whiskeyparknorth/index.htm','winFeatures)’)”);  
}

Javascript:  
function openBrWindow(theURL,winName,features) {  
window.open(theURL,winName,features);  
}

var winFeatures;  
var w = 800, h = 600;  
var popW = 800, popH = 600;  
var leftPos = (w-popW)/2, topPos = (h-popH)/2;

if (document.all || document.layers) {  
popW = screen.availWidth;  
popH = screen.availHeight;  
}

if (checkBrowser(“IE”)){  
if (screen.width \<= 800){  
//show scrollbars  
winFeatures = ‘width=’ + popW + ‘,height=’ + popH + ‘,top=’ + topPos + ‘,left=’ + leftPos + ‘,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=no’;  
} else {  
//no scrollbars  
winFeatures = ‘width=’ + popW + ‘,height=’ + popH + ‘,top=’ + topPos + ‘,left=’ + leftPos + ‘,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no’;  
}

}  
if (checkBrowser(“NS6”)){  
if (screen.width \<= 800){  
//show scrollbars  
winFeatures = ‘width=’ + popW + ‘,height=’ + popH + ‘,top=’ + topPos + ‘,left=’ + leftPos + ‘,directories=no,location=no,menubar=no,scrollbars=yes,status=no,toolbar=no,resizable=no’;  
} else {  
//no scrollbars  
winFeatures = ‘width=’ + popW + ‘,height=’ + popH + ‘,top=’ + topPos + ‘,left=’ + leftPos + ‘,directories=no,location=no,menubar=no,scrollbars=no,status=no,toolbar=no,resizable=no’;  
}  
}

Can anyone help.

Thanks
