title: javascript history.pushState not working for iframe
body: <p>I want to run a <code>pushState</code> and it works fine but when I load the page through an iframe element it refused to work. This is how my code looks like</p>
  
  <pre><code>$('a[href]').click(function){
      newHref = $(this).attr('href');
      history.pushState('', '', newHref);
  })
  </code></pre>
  
  <p>But it's not working, Please anyone with an idea of how to achieve this?</p>