PDA

View Full Version : onClick Javascript Question



atocp
September 2nd, 2003, 01:45 PM
i have recently created a webpage for user to a site:
http://www.geocities.com/stonelionband/temp/index.html

the first button works well with a simple onClick="window.location......"

however, the second one loads up with 1 small problem:

it's not the right height. it's the correct width, just not the right height. here's the script for that:


onClick="window.open('home.html', '1','width=700','height=550','menubar=no','scrollb ars=no');">

why is it not loading the correct height?

thanks for any help.

ATOCP

lostinbeta
September 2nd, 2003, 01:54 PM
It is because you have all the attributes in seperate quotes, the attributes are all defined in 1 set of quotes like this...


onClick="javascript:window.open('home.html', '1', 'width=700, height=550, menubar=no, scrollbars=no');"

atocp
September 2nd, 2003, 02:43 PM
thanks for that.

ATOCP