-
AnyLink open new window
I would like to open a new browser window when my users click on a menu item. It doesn't seem like I can include an onclick method in the <a> tag because this doesn't work:
menu_10[11] = "<a href='#' onclick='alert('click')' >Page 1</a><br /> ";
Is there a solution to this problem? I only need it to work in IE.
Thanks, Alex
-
-
this part:
onclick='alert('click')'
does not work because of your use of single quotes. Place alert text into variable and display it without quotes. Theoretically, even this will work:
onclick=alert('click')
-
-
or...
menu_10[11] = "<a href='#' onclick='alert(\'click\')' >Page 1</a><br /> ";
Verzeihung!
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks