<span id="Label3"></p><pre><pre><strong><span style="color: #ff0000;"><span style="font-size: 14px; color: #ff00ff;">Hyperlink jump</span><br>Same page:</span></strong><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;">name= "q1" > Question One solution </a> <span style="color: #ff0000;">different pages:<span style="color: #000000;">a.html content <a href= "<span style="font-weight: bold;">b.html<span style="font-weight: bold;">#q1 "> question </a>b.html content <a name="<span style="font-weight: bold;">Q1 "> question one solution </a><br></span></span></span></span></span></span></span></span></span></pre></pre><pre><pre><strong>Note: 1. Make sure to open on the same page if <a href= "#q1" > Question one? </a><a href= "#q2" > Issue two?</a> This write is not open on the same page, add target= "_ Self "such as: <a href=" #q1 "target=" _self "> problem one </a><a href=" #q2 "target=" _self "> question two?</a> Add anchor point is to find the corresponding position conveniently and quickly on the same page, so make sure to open it on the same Page. 2. As long as the jump to the same place, the anchor name must be the Same. 3. Add anchor point, start position and end position must be written with <a></a> mark, front is with href= "#锚点名", followed by name= "anchor name";</strong></pre></pre><pre><pre><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: #ff0000;"><span style="color: #000000;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><br><span style="color: #ff0000; font-size: 14px;"><span style="color: #ff00ff;">JS Jump</span><br></span></span></span></span></span></span></span></span></span></span></pre></pre><pre><pre><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: #ff0000;"><span style="color: #000000;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><br>Location.hash= "#id1"; Id<br>Location.hash= "name1"//name<br></span></span></span></span></span></span></span></span></span></script><br><div id= "id1" ></div></pre></pre><pre><pre><div name= "name1" ></div></pre></pre><pre><pre><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="color: #ff0000;"><span style="color: #000000;"><span style="font-weight: bold;"><span style="font-weight: bold;"><span style="font-weight: bold;"><br><br></span></span></span></span></span></span></span></span></span></pre></pre><p><p>HTML anchor points (hyperlinks jump and JS Jump)</p></p></span>
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.