Question Locked

redirecting to a page from .aspx using javascript

0 helpful
6 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

hi friends
i have to redirect from my.aspx to another my1.aspx using javascript
i use
window.location.href="my1.aspx"
from my.aspx but its not working .
can any one please post the solution
bye
regards
Ravishankar MAduri

6 replies

by ravi_maduri_mca

hi
if we do the same for key press it wont work we have to do it for keydown event

by kvravikumar

window.location.href="SecondStyleSheet.aspx?Nm103=" + sNm103

by london freelancer

The Href should work. Where are you calling this javascript code from? Also, try using the full http:// path in the href and see if that works.

Regards,
UrStop

by naveen.2048

you can redirect to .aspx page using javascript using the following code

document.location = some.aspx;

This discussion is closed to new replies.