View Full Version : resize windows


fluffsqueek
05-12-2003, 12:45 PM
Hello, I was wondering if there is a way to open a new window and also resize it at the same time? I know you can open a new window through a link by putting a 'target_blank' in the a href line, but I have seen sites where the window opened is smaller than the default size. Is this actual coding I can use somewhere? I basically want to create a site where you can click on a link, and a poem pops up in another window, but the window is maybe one third the size as the original homepage.
Thank you!

amicus
05-12-2003, 01:56 PM
put the function inside the 'script' tag and use the link to pass in a url, title and the features. the way the script is written you can reuse the same function, just pass in the information.
the link is goes on one line and 'javascript' is one word. for some reason the forum breaks it up :/


function popUp( url, title, features ) {
window.open( url, title, features );
}

<a href="javascript:popUp( 'http://www.lissaexplains.com/', 'Lissa', 'height=200,width=400,status=yes,toolbar=no,menuba r=no,location=no' )">text</a>