Riparian Posted February 13, 2008 Share Posted February 13, 2008 Is there a way the trigger a html name anchor as a result of a search ? Explanation : A page of names and details with say 50 entries. I would like a quick name search at the top that jumps to a named anchor that I have set up during the while loop. I currently have this working by displaying a hyperlink after the search has found the name but I have to click the hyperlink... 2 actions for the same process and 3 refreshes of the screen Any help is greatly appreciated Thanks heaps Brian Link to comment https://forums.phpfreaks.com/topic/90831-help-with-html-name-anchor/ Share on other sites More sharing options...
Isityou Posted February 13, 2008 Share Posted February 13, 2008 I don't quite understand. I hope this helps. Someone simply enters the name of the anchor into the text field and it searches for that anchor and brings you to the name of that anchor. <script> function search_anchor(object) { _anchor = object.value; parent.location = '#' + _anchor; } </script> <input id="search" type="text" name="search" /> <input type="button" value="Search" onClick="search_anchor(search)"/> Link to comment https://forums.phpfreaks.com/topic/90831-help-with-html-name-anchor/#findComment-465625 Share on other sites More sharing options...
Riparian Posted February 14, 2008 Author Share Posted February 14, 2008 Thank you for the help ... I can use this,,, I think. But I wish I could find how to close this thread ! Cheers Link to comment https://forums.phpfreaks.com/topic/90831-help-with-html-name-anchor/#findComment-466494 Share on other sites More sharing options...
JTapp Posted February 17, 2008 Share Posted February 17, 2008 I'm having a problem closing threads as well. Don't reply to this and look for a blue button that has "topic resolved" on it. See if that works. I'll check back. Link to comment https://forums.phpfreaks.com/topic/90831-help-with-html-name-anchor/#findComment-469153 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.