What is best way to open a pop up window maximized to the user's screen configuration? I am using C# ASP.NET 3.5 web site project.
Update:
@Anthony - The windows xp task bar covers up some of the browser window. How do I set to maxmmumize and stop at the windows xp task bar?
Update 1:
I used the following the solution to maxumize the pop up window, but it opens the window first then moves it to the upper left corner of the screen. Is there a way just to open the pop up at the 0,0 position?
function openMaxWindow(url) {
var name = "MyWindow";
var features = "status=1,toolbar=1,location=1,menubar=1,scrollbars=1,resizable=1,top=0,left=0,height=" + screen.availHeight + ",width=" + screen.availWidth;
var newWindow = window.open(url, name, features);
}
Update 2:
Figured it out, I needed to add top=0 and left=0 to the features list.