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

linux - Mailx and Gmail nss config dir -

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

php - Mysql PK and FK char(36) vs int(10) -