General discussion

Locked

window.open

By Shanghai Sam ·
I have written a menu in java script where the link takes you to a web address code as follows:
var MENU_ITEMS =[
["Sports & Leisure", null,
["Bowling clubs", "bowling"],
["Sports clubs", "sportsclubs"],
["Sports centres", window.open("http://www.wirral.gov.uk/ed/sports_centres.htm", "target" ) ],
["Parks", "http://www.wirral.gov.uk/er/"],
["Libraries", "http://www.wirral-libraries.net/" ]

],
I would like the window to open when the link is clicked and not when the index page is loaded of the site.

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Web Development Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums