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.Open Url inside HTML DIV on Menu item click using jQuery<p>Hi <a class="username" rel="ROHIT"> ROHIT</a>,</p> <p>To open url inside the page within a div you need to use iframe.</p> <p>Check this example. Now please take its reference and correct your code.</p> <div class="demo_block"> <pre class="brush: html">&lt;div&gt; &lt;section id=&#34;body&#34; class=&#34;width&#34;&gt; &lt;aside id=&#34;sidebar&#34; class=&#34;column-left&#34;&gt; &lt;header&gt; &lt;h1&gt;&lt;a href=&#34;#&#34;&gt;ASPSnippets.com&lt;/a&gt;&lt;/h1&gt; &lt;h2&gt;Welcome to AspForums!&lt;/h2&gt; &lt;/header&gt; &lt;nav id=&#34;mainnav&#34;&gt; &lt;ul&gt; &lt;li class=&#34;selected-item&#34;&gt;&lt;a href=&#34;http://www.aspforums.net&#34; &gt;ASPForums&lt;/a&gt;&lt;/li&gt; &lt;li class=&#34;selected-item&#34;&gt;&lt;a href=&#34;http://www.aspsnippets.com&#34; &gt;ASPSnippets&lt;/a&gt;&lt;/li&gt; &lt;/ul&gt; &lt;/nav&gt; &lt;/aside&gt; &lt;div class=&#34;clear&#34;&gt;&lt;/div&gt; &lt;/section&gt; &lt;/div&gt; &lt;div id=&#34;dvDisplay&#34;&gt; &lt;/div&gt; &lt;script type=&#34;text/javascript&#34; src=&#34;https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js&#34;&gt;&lt;/script&gt; &lt;script type=&#34;text/javascript&#34;&gt; $(function () { $(&#39;li a&#39;).on(&#34;click&#34;, function () { var url = $(this).attr(&#39;href&#39;); $(&#39;[id*=dvDisplay]&#39;).html(&#39;&lt;iframe frameborder=&#34;1&#34; src=&#34;&#39; + url + &#39;&#34; /&gt;&#39;); return false; }); }); &lt;/script&gt;</pre> </div> <p><a class="demo button orange btn btn-red">Demo</a></p>https://www.aspforums.net:443/Threads/178064/Open-Url-inside-HTML-DIV-on-Menu-item-click-using-jQuery/https://www.aspforums.net:443/Threads/178064/Open-Url-inside-HTML-DIV-on-Menu-item-click-using-jQuery/Thu, 22 Feb 2018 02:35:36 GMT