Please do not post any support questions here. This site is not monitored by us.

This demo site is using AnsPress version 4.2.3.

This is a title for me

1.08K viewsGitHubonetag tag
0
0 Comments

This is my answer

Mohd Hasan Answered question May 24, 2019
Add a Comment
0

<div class="post-text" itemprop="text">
<p>HTML5 introduced the <a href="https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_pushState()_method" rel="noreferrer"><code>history.pushState()</code></a> and <a href="https://developer.mozilla.org/en-US/docs/Web/API/History_API#The_replaceState()_method" rel="noreferrer"><code>history.replaceState()</code></a> methods, which allow you to add and modify history entries, respectively.</p>
 <pre class="default prettyprint prettyprinted" style=""><code><span class="pln">window</span><span class="pun">.</span><span class="pln">history</span><span class="pun">.</span><span class="pln">pushState</span><span class="pun">(</span><span class="str">'page2'</span><span class="pun">,</span><span class="pln"> </span><span class="str">'Title'</span><span class="pun">,</span><span class="pln"> </span><span class="str">'/page2.php'</span><span class="pun">);</span></code></pre>
 <p>Read more about this from <a href="https://developer.mozilla.org/en/DOM/Manipulating_the_browser_history" rel="noreferrer">here</a></p>
    </div>

Anonymous Answered question May 24, 2019
Add a Comment
You are viewing 1 out of 6 answers, click here to view all answers.
Write your answer.