Difference between window.location.assign() and window.location.replace()

Using window.location.assign(“url”) will just cause a new document to load. Using window.location.replace(“url”) will replace the current document and replace the current History with that URL making it so you can’t go back to the previous document loaded. Reference: http://www.exforsys.com/tutorials/javascript/javascript-location-object.html

How to remove the hash from window.location (URL) with JavaScript without page refresh?

Solving this problem is much more within reach nowadays. The HTML5 History API allows us to manipulate the location bar to display any URL within the current domain. function removeHash () { history.pushState(“”, document.title, window.location.pathname + window.location.search); } Working demo: http://jsfiddle.net/AndyE/ycmPt/show/ This works in Chrome 9, Firefox 4, Safari 5, Opera 11.50 and in IE … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)