JavaScript.CoolDev.Com Support Forums

Any questions related to JavaScript menu and JavaScript tree menu by Javascript.CoolDev.Com

 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Open new window and control size

 
Post new topic   This topic is locked: you cannot edit posts or make replies.    JavaScript.CoolDev.Com Forum Index -> COOLjsTree
Author Message
dphoto



Joined: 25 Jun 2006
Posts: 4
Location: Scotland

PostPosted: Sun Jun 25, 2006 7:03 am    Post subject: Open new window and control size Reply with quote

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

PostPosted: Mon Jun 26, 2006 4:20 am    Post subject: Reply with quote

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

PostPosted: Mon Jun 26, 2006 11:29 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   This topic is locked: you cannot edit posts or make replies.    JavaScript.CoolDev.Com Forum Index -> COOLjsTree All times are GMT
Page 1 of 1