|
I want to add a javascript link with onclick event to the javascript pop up menus
Return to Recent Questions
Q:
I just want to grab the current page, insert it into a string, and go off to the page it
specifies. Can this be done in javascript pop up menus?
I want to add a javascript link in the javascript pop up menus but cannot seem to get it
handle the event as a tag or onclick event.
A:
You're able to use Javascript calls for each item, for example:
var menuitems = [
["item text", "javascript:your_code_here"]
];
You can't assign onmouseover/onClick event to each javascript pop up menus item.
However, you can achieve this by using standard html objects within
items, for example:
var menuitems = [
["<div onClick='your_code_here'>item text</div>", "index.html"]
];
Return to Recent Questions
Related:
- March 12, 2007 - I have problems with image paths when I create menus in web in DHTML Tuner.
- March 14, 2007 - I am having a problem with css styles in the web menu creator.
- March 15, 2007 - I have problems with transitional effects in Firefox in the java drop down menus...
- March 26, 2007 - After click the links the javascript expanding menu stops showing up in cross-frame mode...
- March 27, 2007 - I can't validate my pages with W3C or WDG validators using down menus in javascript...
- March 28, 2007 - Is it necessary to add dmWorkPath parameter in the java script download?
- March 29, 2007 - How could I call a script instead of specifying a link in vertical dhtml menu myspace?
- Apr 05, 2007 - We have status bar errors that say: "Done, but with errors on page" in pop up menu code...
- Apr 06, 2007 - Can the link items NOT open a new window in the drop down menus in html?
- Apr 07, 2007 - I want to get my text within a single collapsible javascript item to be on a two lines...
- Apr 15, 2007 - My mainmenu items are not links. So I need no link cursor for these menu dynamic items.
|