| Author |
Message |
Guest
|
Posted: Mon Jun 09, 2003 8:57 pm Post subject: Target of URLS |
|
|
| 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
|
Posted: Tue Jun 10, 2003 3:25 am Post subject: |
|
|
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
|
Posted: Tue Jun 10, 2003 9:31 pm Post subject: |
|
|
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 |
|
 |
|