vngx
April 27, 2015, 6:05am
1
Hi there
this is my jsfiddle.net
http://jsfiddle.net/vngx/v71ejn2y/2/
On click of a Specified link I want to Jump to that page and simultaneously if I want to Jump from some other page to at some point on some other page to.
How do I acheive this?
Add anchor on target page:
<a name="my-anchor"></a>
and add it to link on the other page:
<a href="page.html#my-anchor">Link</a>
ronpat
April 27, 2015, 6:37am
3
Take a look at your fiddle and see if my update stuck.
The name attribute is deprecated for this purpose. You should be using id=“my-anchor” instead of the name attribute.
2 Likes
Strictly speaking, you don’t need an anchor tag for this purpose; you can place an directly ID on your paragraph element.
<p id='my-anchor'>blah blah blah tele blah...</p>
1 Like
That approach is as obsolete as Netscape 4.
You should never put a name attribute on an <a>
tag any more.
The target for an anchor link is any id in the page.
<p id="my-anchor">
or <div id="my-anchor">
or <span id="my-anchor">
Erik_J
April 27, 2015, 8:45pm
8
As felgall already said, target an id on another page or just the fragment (#para ) on the same page.
I updated your jsfiddle.net
1 Like
system
Closed
July 28, 2015, 3:53am
9
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.