did anyone know how to load a webpage in 'kiosk mode'. This should perform a webpage in a predefined size without the close -, minimize- and maximize- button.
Is this mode browser independent so that it works with the common browsers like internet explorer, mozilla, firefox, opera, etc.
thank you in advance.
Your help is greatly appreciated.
greatings hugomanGah, I dont remember the exact code for this but you can take away most of the browser toolbars and such with javascript. Make a function to call a new window and you can set the title, size, what tool bars appear, and what status bar appears. Ill run through some stuff to see if I can find it for you.
Here is a javascript snippet that will do it
window.open('abcd.html', null, 'width=790,height=544,top=' + (screen.height-600)/2 + ',left=' + (screen.width-800)/2 + ',directories=no, Toolbar=no, resizable=yes, menubar=no, ScrollBars=yes, titlebar=no');
The titlebar option is supported only in Javascript 1.2. From referece...
titlebar (JavaScript 1.2): If yes, creates a window with a title bar. To set
the titlebar to no, set this feature in a signed script.
To perform the following operations, you need the UniversalBrowserWrite
privilege:
? To create a window smaller than 100 x 100 pixels or larger than the screen
can accommodate by using innerWidth, innerHeight, outerWidth, and
outerHeight.
? To place a window off screen by using screenX and screenY.
? To create a window without a titlebar by using titlebar.
? To use alwaysRaised, alwaysLowered, or z-lock for any setting.
For information on security, see the Client-Side JavaScript Guide.
Hope this helps
window.open("MasterPage.html",null,"toolbar=no,menubar=no,scrollbars=no,resizable=no,location=no,directories=no,status=no,titlebar=no,fullscreen=yes");
self.resizeTo(screen.width,screen.height);
self.moveTo(0,0);
//if(navigator.appName == "Microsoft Internet Explorer")
if(browser =="Microsoft Internet Explorer"){
if(b_version =="7")window.open('','_self');
else
window.opener = self;
window.close();
}
else{
window.open('','_parent','');window.close();
}
hope this will be of some help
0 comments:
Post a Comment