Attaching "OnClick" Javascript code to dhtml popup menu links

Ask a Question related to Macromedia Fireworks, Design and Development.

  1. #1

    Default Attaching "OnClick" Javascript code to dhtml popup menu links

    I am currently developing a web site using fireworks, and am trying to figure out a way (through hand-coding) of attaching a javascript function (onClick="doit=false") to each of the links in my fireworks-generated dhtml popup menus. Does anyone here know where I would add this javascript function in the code so that it would be recognized? And do I do it in the html, or in the JS file?

    The javascript function I need to add is supposed to supress an exit popup window. If I can't attach it to the links in the dhtml popup menu, then that means that the popup will get spawned every time
    someone clicks on one of the links, which would obviously be a problem. Any tips or advice would be appreciated.

    thanks,
    - yvan


    yvangagnon webforumsuser@macromedia.com Guest

  2. Similar Questions and Discussions

    1. Help! A "Connect to" popup menu appears when trying toplay a video
      Thanks. A "Connect to" popup menu appears that asks for my username and password when trying to play video. I believe this menu began...
    2. javascript help needed: Trapping "null" from pop up menu so it doesn't display
      I am making some interactive forms which use the app.popUpMenuEx routene to make a pop up menu. When the menu is clicked on incorrectly ... the...
    3. Javascript menus show "under" .SWF files need Netscape code!
      I recently found the parameter code to allow Javascript menu's to display "Over" a .SWF file, however it only works in the Internet Explorer browser....
    4. Resetting "Visited" links to "links" color when new browser opens
      HELP! This should be simple, but I can't find info: In using CSS for font color for text hyperlinks, I have mine set so that the "links" are a...
    5. "Start" "Program" "Menu" list is empty
      For what ever reason my list of installed programs in my "Start" "Programs" menu is empty. Anyone know how to restore the list. Thanks for your...
  3. #2

    Default Re: Attaching "OnClick" Javascript code to dhtml popup menu links

    Thank you so much! That's exactly the kind of information I was looking for.

    Much appreciated sir.

    Cheers,

    - yvan




    yvangagnon webforumsuser@macromedia.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139