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

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

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