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 

Target of URLS

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






PostPosted: Mon Jun 09, 2003 8:57 pm    Post subject: Target of URLS Reply with quote

it is possible to specify the target on a URL, like into a new window?
Back to top
camner



Joined: 05 Jun 2003
Posts: 21

PostPosted: Tue Jun 10, 2003 3:25 am    Post subject: Reply with quote

I believe one just uses the "target" parameter. An example from the supplied demos is:

{code:"<b>COOLjsMenu PRO</b>", url:"http://javascript.cooldev.com/scripts/coolmenupro/", "target":"_top"}
Back to top
AlexKunin
Developer


Joined: 03 Jan 2003
Posts: 1191

PostPosted: Tue Jun 10, 2003 9:31 pm    Post subject: Reply with quote

Yes, exactly: "target" attribute will redirect URL to other frame or new window. It will act like the following HTML code:

<a href="your_URL" target="your_frame">...</a>

If you want to open new window with specific size, position or some other predefined parameters, then you can do it like this:

{'code':'Menu item', 'url':"javascript:void(window.open('some_file.html', 'some_name_of the window', 'width=400,height=300'))", ...
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