Redirect from asp.net page to another using javascript function -


i know if want redirect asp.net page anther in code behind need write-

response.redirect("somepage.aspx"); 

my question if possible same thing in javascript function, , if how?

thank you!

this should do:

window.location = "somepage.aspx"; 

or

window.location.href="somepage.aspx"; 

or

window.location.assign("somepage.aspx"); 

Comments

Popular posts from this blog

apache - Remove .php and add trailing slash in url using htaccess not loading css -

javascript - jQuery show full size image on click -