Opening url in fullscreen



with no address bar, menu bar and standard buttons

Works on IE 5.5, Mozilla1.77, FireFox 1.0.5 rather to say checked the same on these version of browsers

Scenario: http://www.fxtremecoder.com and you want the html to open in fullscreen and disable the addressbar, menubar and even the standard buttons, more or less a popup window but the main window not automatically closed.

Here is the script which can help you out
assume that your index/default file should have the javascript function in the head as

<script language=”JavaScript”><!-
scrx= screen.width-10;
scry = screen.height-25;
function openchild() {
parammeter = “toolbar=no,menubar=no,width=”+ scrx +”,height=”+ scry;
window.open(‘flash.htm’,’test’,parammeter);
parent.close(opener=0);
}
// flash.htm should be the desired html file where the actual content is function checkBrowser() {
if(navigator.appName==”Netscape”)
window.open(”,’_top’,’menubar=0,location=0,toolbar=0,personalbar=0,status=1,scrollbars=1′);
}
//–></script>

Have the body tag as
<BODY onload=”checkBrowser();openchild()”>
so here is the code in the head for flash.htm where your actual conent comes

<script language=”JavaScript”><!-
window.moveTo(0,0);
//–></script>

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s