ASPForums.Net RSS Feedhttp://www.aspforums.net/Handlers/RSS.ashxLatest additions to the content that appears on ASPForums.Net(c) 2019 www.aspforums.com. All rights reserved.Redirect to specific part of a page with HTML Hyperlink<p>Hi <a class="username" rel="nauna">nauna</a>,</p> <p>Please refer below sample.</p> <p><span style="text-decoration: underline;"><strong>HTML</strong></span></p> <p><strong>HTMLPage.html</strong></p> <pre class="brush: html">&lt;html lang=&#34;en&#34;&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;ul&gt; &lt;li&gt;&lt;a class=&#34;tocxref&#34; href=&#34;HTMLPage1.htm#3&#34;&gt;Links 1&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class=&#34;tocxref&#34; href=&#34;HTMLPage2.htm#4&#34;&gt;Links 2&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class=&#34;tocxref&#34; href=&#34;HTMLPage3.htm#1&#34;&gt;Links 3&lt;/a&gt;&lt;/li&gt; &lt;li&gt;&lt;a class=&#34;tocxref&#34; href=&#34;HTMLPage4.htm#2&#34;&gt;Links 4&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/body&gt; &lt;/html&gt; </pre> <p><strong>HTMLPage1.html</strong></p> <pre class="brush: html">&lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&gt; &lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div id=&#34;#1&#34;&gt; Test 1 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#2&#34;&gt; Test 2 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/75/199481072_b4a0d09597_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#3&#34;&gt; Test 3 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/57/199481087_33ae73a8de_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#4&#34;&gt; Test 4 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/77/199481108_4359e6b971_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </pre> <p><strong>HTMLPage2.html</strong></p> <pre class="brush: html">&lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&gt; &lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div id=&#34;#1&#34;&gt; Test 1 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#2&#34;&gt; Test 2 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/75/199481072_b4a0d09597_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#3&#34;&gt; Test 3 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/57/199481087_33ae73a8de_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#4&#34;&gt; Test 4 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/77/199481108_4359e6b971_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </pre> <p><strong>HTMLPage3.html</strong></p> <pre class="brush: html">&lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&gt; &lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div id=&#34;#1&#34;&gt; Test 1 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#2&#34;&gt; Test 2 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/75/199481072_b4a0d09597_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#3&#34;&gt; Test 3 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/57/199481087_33ae73a8de_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#4&#34;&gt; Test 4 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/77/199481108_4359e6b971_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </pre> <p><strong>HTMLPage4.html</strong></p> <pre class="brush: html">&lt;!DOCTYPE html PUBLIC &#34;-//W3C//DTD XHTML 1.0 Transitional//EN&#34; &#34;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&#34;&gt; &lt;html xmlns=&#34;http://www.w3.org/1999/xhtml&#34;&gt; &lt;head&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;div id=&#34;#1&#34;&gt; Test 1 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/66/199481236_dc98b5abb3_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#2&#34;&gt; Test 2 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/75/199481072_b4a0d09597_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#3&#34;&gt; Test 3 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/57/199481087_33ae73a8de_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;div id=&#34;#4&#34;&gt; Test 4 &lt;br /&gt; &lt;img src=&#34;http://static.flickr.com/77/199481108_4359e6b971_s.jpg&#34; height=&#34;400px&#34; alt=&#34;&#34; /&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </pre> <p><span style="text-decoration: underline;"><strong>Screenshot</strong></span></p> <p><img src="https://imgur.com/5dRZ2XG.gif" alt="" width="429" height="507" /></p>https://www.aspforums.net:443/Threads/520035/Redirect-to-specific-part-of-a-page-with-HTML-Hyperlink/https://www.aspforums.net:443/Threads/520035/Redirect-to-specific-part-of-a-page-with-HTML-Hyperlink/Fri, 28 Sep 2018 04:49:03 GMT