04-16-2008, 04:38 PM
|
#2 (permalink)
|
|
v7n Mentor
Join Date: 04-13-07
Location: Romania
Posts: 2,963
|
open a popup window in fullscreen mode
At first this could be an easy task (hell, it really is) but not without a little trick. As you know, IE suports the fullscreen mode but other browsers don't, so in my example I'll show you how to make a crossbrowser popup window to be shown in fullscreen mode:
First, let's create the function that we'll use to open the popup window:
Code:
function openPopup(url, name, features) { return window.open(url, name, features); }
Now, let's get the available screen size:
Code:
var width = screen.width, height = screen.height;
Running the code:
Code:
openPopup("http://www.www.www", "windowName", 'width='+width+', height='+height +'toolbar=yes, scrollbars=yes');
Just a small note in the end: don't use popup windows excessivelly, use them only if you have something important to show. 
|
|
|