|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (6 bit)
Join Date: Feb 2002
Location: Quebec
Posts: 39
|
HTML - Popup windows size
Hi,
I was wondering how do you specify the size of a window to open.. like a picture... link to a new window with a small size since the picture is small... anyone know how? thanks... |
|
|
|
|
|
#2 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
__________________
"A witty saying proves nothing." - Voltaire |
|
|
|
|
|
#3 |
|
Member (9 bit)
Join Date: Nov 2001
Location: Northeast USA
Posts: 356
|
|
|
|
|
|
|
#4 |
|
Member (6 bit)
Join Date: Feb 2002
Location: Quebec
Posts: 39
|
So this is the code?
[windowVar = ][window].open("URL", "windowName", ["windowFeatures"]) Where windowFeatures is a comma-separated list of any of the following options and values: toolbar[=yes|no]|[=1|0] location[=yes|no]|[=1|0] directories[=yes|no]|[=1|0] status[=yes|no]|[=1|0] menubar[=yes|no]|[=1|0] scrollbars[=yes|no]|[=1|0] resizable[=yes|no]|[=1|0] width=pixels height=pixels Where I put that in my HTML? |
|
|
|
|
|
#5 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
You could add the code directly into the link, for example:
Code:
<a href="#" onclick="window.open('http://www.mysite.com/', 'My Site', 'height=200,width=300')">
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|