• Post Reply Bookmark Topic Watch Topic
  • New Topic

Automatically jumping to a certain spot on a page  RSS feed

 
Peter Hahn
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to jump to a certain <A name=[NAME]> spot (of a different page) after hitting a submit button. However, when i send the name of the spot to jump to by using a <INPUT type=hidden name=" " value=#spot>, the # gets converted into %23 in the URL so it doesn't work. Is there some javascript or jsp command that can help me do what I need? I was thinking about using 'onload' or 'jsp:forward' but I'm not sure if i can get that to work.
 
Peter Hahn
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nevermind, someone showed me the location.replace('') function, which is exactly what i was looking for
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!