javascript assign() -


as far i've tested, 2 methods works, don't know wich 1 best, neither differences between them, , that's i'd know.

here's 2 methods :

window.location = 'http://www.google.com'; window.location.assign = 'http://www.google.com'; 

thougths?

these 2 methods equivalent. first 1 clearer me. syntax assign be:

window.location.assign('http://www.google.com');


Comments

Popular posts from this blog

c# - Is it possible to remove an existing registration from Autofac container builder? -

asp.net - RadAsyncUpload in code behind, how to? -