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

python 3.x - Mapping specific letters onto a list of words -

javascript - jquery or ashx not working -

inno setup - TLabel or TNewStaticText - change .Font.Style on Focus like Cursor changes with .Cursor -