I wish to open a new window from a simple link in HTML which must be maximized. Does any of you have a function which includes this?
Printable View
I wish to open a new window from a simple link in HTML which must be maximized. Does any of you have a function which includes this?
this will open a new window that fills the screen.Code:function openNewWindow(sPagename)
{
var winName = "";
var winFeatures = "width=" + (screen.availWidth - 10) + ",height=" + (screen.availHeight - 30) + ",top=0,left=0,scrollbars";
var winURL = "http://localhost/" + sPagename
var w;
w = window.open(winURL,winName,winFeatures);
}
i have never found out how to make the window maximised.
I always hate it when a new window fills my screen entirely, hiding the min/max controls and the taskbar. Popup windows should never make it harder for users to use their computer.Quote:
Originally posted by DeadEyes
i have never found out how to make the window maximised.
I agree, bu then I didn't express myself clearly. What I wish is a new window which fills the entire screen area, including toolbars, buttons etc.
riis I think you've missed the point. the idea is to put the window
in a maximised state (like when you click that little box in the top right corner) not to hide any controls
Is it possible to include the toolbar and the status line?
Yes is part of features:
Code:var winFeatures = "width=500,height=500,top=0,left=0,scrollbars,status,toolbar";
How do I allow that the user can scale the window size? Now it is fixed and that is not elegant. I have used this code:
window.open ("http://www.xxxxx.com/default.aspx",
"mywindow","location=0,status=1,width=" + (screen.availWidth - 10) + ",height=" + (screen.availHeight - 30) + ",top=0,left=0";