JavaScript.CoolDev.Com Support Forums
Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com
| Author |
Message |
dphoto
Joined: 25 Jun 2006 Posts: 4 Location: Scotland
|
Posted: Sun Jun 25, 2006 7:03 am Post subject: Open new window and control size |
|
|
I'm on a steep learning curve here!
I have learnt to add
| Code: | | ["Category", "http://www.whatever.com", "_blank"], |
to open a new window. But can I control the size of it? I want a smaller pop up with full features - scroll bar etc).
I found the "_blank" info on the forum but cannot find anything more.
Thanks
David |
|
| Back to top |
|
 |
AlexKunin Developer
Joined: 03 Jan 2003 Posts: 1191
|
Posted: Mon Jun 26, 2006 4:20 am Post subject: |
|
|
You can use javascript protocol:
| Code: | | ["Category", "javascript:void window.open('http://www.whatever.com','_blank','...')", null], |
|
|
| Back to top |
|
 |
dphoto
Joined: 25 Jun 2006 Posts: 4 Location: Scotland
|
Posted: Mon Jun 26, 2006 11:29 am Post subject: |
|
|
Thank you Alex.
From your answer I found what I was looking for.
| Code: | | ["Loch Ness/Urquhart Castle", "javascript:void window.open('http://www.whatever.com,'_blank','width=800,height=600,directories=yes,location=yes,menubar=yes,scrollbars=yes,status=yes,toolbar=yes,resizable=yes')", null], |
A good site for anyone interested - http://www.irt.org/articles/js128/index.htm#1
Regards
David |
|
| Back to top |
|
 |
|
|