Page size and location on Page Load
-
I am opening a page from a hyperlink, and want to set it's dimensions to 400x400, and put it in the middle of the page. I know I'll probably have to do this with javascript, but how? Can it be done in Page_Load? Thanks!
if you are trying to open a page in new window then try window.open(url,windowname,features) example url="mypage.aspx", windowname="mywindow" var wtop=screen.height-400/2; var wleft = screen.width-400/2; features="width=400,height=400, top="+ wtop +", left="+ wleft +"" Salim Akbar
-
if you are trying to open a page in new window then try window.open(url,windowname,features) example url="mypage.aspx", windowname="mywindow" var wtop=screen.height-400/2; var wleft = screen.width-400/2; features="width=400,height=400, top="+ wtop +", left="+ wleft +"" Salim Akbar