$.ajax({ type: 'post', url: href, dataType: 'html', success: function(data){ history.pushState(null, null, href); alert(data.getElementsByTagName("div")); }, });