PDA

View Full Version : how to make a specific size window?


asacchi011
03-04-2006, 10:54 AM
I am a designer i don`t write script. Can you please help me how to make a screen/new window 320 px x 240 px.

ramandeep
03-04-2006, 11:44 AM
Hi,
you can use javascipt to open a new window of custom size
Use this function in your script tags

var newwindow;
function opennew(url)
{
newwindow=window.open(url,'name','height=320,width =240');
if (window.focus) {newwindow.focus()}
}
</script>


and your link should be like this

Visit Dreamweaver Club! (javascript:opennew('http://www.dreamweaverclub.com');)

d a v e
03-04-2006, 12:34 PM
check the macromedia (Adobe) site on the extensions page and look for popup window behavoiurs too if you want it done for you ;)