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 

Can I use "window.open()" to open a window?

 
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu
Author Message
Gorden
Guest





PostPosted: Mon Jul 21, 2003 2:02 pm    Post subject: Can I use "window.open()" to open a window? Reply with quote

When I click a menu item, I sometimes want to open a special window, for example without status bar. So I need use the "window.open()" command to specify the window style. I want to know if I can implement it with the COOLjsMenu? Thanks in advance.
Back to top
Gala
Support Team


Joined: 21 Jul 2003
Posts: 12

PostPosted: Mon Jul 21, 2003 5:54 pm    Post subject: Reply with quote

Yes, for open new window without scrollbar, toolbar and etc. you should write line like this:
Code:
{"code":'My item', "url":"javascript:void(window.open('some_file.html', '_blank', 'width=300,height=200,scrollbars=no'))", ...

And you'll get what you want. Smile

Good luck!
Back to top
Gorden
Guest





PostPosted: Tue Jul 22, 2003 2:53 am    Post subject: Reply with quote

Thanks your great help! Very Happy
Back to top
Display posts from previous:   
Post new topic   Reply to topic    JavaScript.CoolDev.Com Forum Index -> COOLjsMenu All times are GMT
Page 1 of 1