asp.net - Open a pop up window maximumize to the user's screen configuration -
What is the best way to open a pop-up window to maximize user's screen configuration? I am using the C # ASP.NET 3.5 Web site project.
Update:
@Anthony - Some browser windows in the Windows XP Task Bar How do I set up and maximize Windows XP Task Bar?
Update 1:
I used the solution to maximize the pop up window, but it opens the window first, then the top left corner of the screen takes into. Is there any way to open pop up in 0,0?
function openmax window (url) {var name = "MyWindow"; Var attribute = "position = 1, toolbar = 1, place = 1, menubush = 1, scrollbar = 1, resizable = 1, top = 0, left = 0, height =" + screen.weighight + ", width =" + Screen.availWidth; Var newWindow = window.open (url, name, features); }Update 2:
Understand this, I need to add top = 0 and left = 0 to the list of features.
Use javascript to run
var newWindow = window .open (); Newindow.resizeTo (screen.width, screen.height);
Obviously, you need to use the appropriate parameters for the window.open () statement.
Edit
newWindow.moveTo (0,0); NewWindow.resizeTo (screen.availWidth, screen.availHeight);
Comments
Post a Comment