Jumping to different parts of a page using a dropdown

It is relatively simple to dynamically create a dropdown from which you can jump to different parts of a page using JavaScript and ATG DSPEL.

First create the dropdown.

Next create the button outside of the form for jumping to different parts of the page. I learned about the window.location.hash from this article. And I learned about how to access the selected value from the dropdown from this article.

 

Finally you create the name anchors throughout your document.


  
  
  

    <%-- magazine category --%>
    
    
    "
       id="">
      
    

  


Leave a Reply

Your email address will not be published. Required fields are marked *