Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
07-17-2014, 07:06 PM #1
- Join Date
- Jul 2014
- Thanked 0 Times in 0 Posts
Link to specific element of HTML page
Hi, I have an HTML page of several elements. Is there a way to generate links to a specific element so that the link takes someone to a page containing ONLY that element?
In a way, I want something similar to URL fragments, so the link would be something like www.example.com/foo.html#bar (not necessarily that syntax or using # symbol)
The link would take the user to a page where only element bar is displayed instead of the whole foo.html page scrolled down to bar (like how URL fragments work)
I can get the ID of the element when the user clicks on the "generate link" button of that element, but I am not sure what to do after that. Do I create a new HTML page? Is there some other tricks that makes this easier?
Thanks in advance.