Jul 25, 2001 #1 jalbao Programmer Nov 27, 2000 413 US i have a link that opens up a seperate window (_blank). how do i use js to make the new window open up with a size of 200x200?
i have a link that opens up a seperate window (_blank). how do i use js to make the new window open up with a size of 200x200?
Jul 25, 2001 #2 FhHouse Programmer May 28, 2001 16 US you can embed this in your new page, <body onLoad="window.resizeTo(200, 200);"> but it seems to have different results in Netscape and IE. better yet, don't use target="_blank" use <a href="javascript:;" onClick="window.open('about.asp','FILE','width=200,height=200,scrollbars=yes,resizable,toolbar,location')" >Click here</a> Upvote 0 Downvote
you can embed this in your new page, <body onLoad="window.resizeTo(200, 200);"> but it seems to have different results in Netscape and IE. better yet, don't use target="_blank" use <a href="javascript:;" onClick="window.open('about.asp','FILE','width=200,height=200,scrollbars=yes,resizable,toolbar,location')" >Click here</a>
Jul 26, 2001 #3 baad Programmer Apr 10, 2001 1,481 RU hie albao, i'm shure there are faqs on this subject.. anyway, catch this: http://developer.netscape.com/docs/manuals/communicator/jsguide/methods.htm#1005651http://developer.netscape.com/docs/manuals/js/client/jsguide/windows.htm#1004225http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#1202731http://msdn.microsoft.com/library/d...hop/author/dhtml/reference/methods/open_0.asp regards, vic Upvote 0 Downvote
hie albao, i'm shure there are faqs on this subject.. anyway, catch this: http://developer.netscape.com/docs/manuals/communicator/jsguide/methods.htm#1005651http://developer.netscape.com/docs/manuals/js/client/jsguide/windows.htm#1004225http://developer.netscape.com/docs/manuals/js/client/jsref/window.htm#1202731http://msdn.microsoft.com/library/d...hop/author/dhtml/reference/methods/open_0.asp regards, vic