4 Replies Latest reply on Oct 10, 2013 1:02 PM by Preran

    How do I link a button to an anchor point on the page?

    cii-keith

      I've been trying to figure out how to write a JavaScript action that will simply allow me to click on a link and go to an anchor point in the page. There is no code snippet for this and I am lost when it comes to writing javascript.

       

      I have created a menu that I want to place into my site and here's what I have tried for linking a menu button to an anchor on the page:

      Symbol.bindElementAction(compId, symbolName, "${_button1}", "click", function(sym, e) {

               javascript:anchor("hub_existence");

       

      What am I doing wrong and how do I do this?

       

      Any help is greatly appreciated!