window.moveTo(0,0);
window.resizeTo(screen.availWidth, screen.availHeight);
Also, when you open a custom page you can also set the window size by using the same javascript function. In your code you can use the following function in the Page.OnLoad() to set the window size to match your requirements:
private void SetWindowSize(int iWidth, int iHeight)
{
StringBuilder sbResizeScript = new StringBuilder();
sbResizeScript.Append("\n");
ClientScript.RegisterClientScriptBlock(this.GetType(), "ResizeScript", sbResizeScript.ToString());
}
Happy resizing!
ping back from http://www.castorsoft.com/articles/2008.3.19.htm
ReplyDeleteHi,
ReplyDeleteThanks for the script.It helped us to resize the window .Great , keep it up
This is not working from outlook client.
ReplyDelete