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
Post a Comment