By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,947 Members | 1,505 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,947 IT Pros & Developers. It's quick & easy.

Redirect page in javascript.

P: 19
Hi,
How do i redirect page in the javascript function?
I am using
Response.redirect ("LoadDetail_DS.asp");

but it gives me error :
'Response' is undefined.

Thanks
Jun 18 '08 #1
Share this Question
Share on Google+
4 Replies


hsriat
Expert 100+
P: 1,654
Use window.location
Jun 18 '08 #2

gits
Expert Mod 5K+
P: 5,390
yep, you could even use replace() or reload() ... for that purpose ... the link will show you the differences and usage ...

kind regards
Jun 18 '08 #3

acoder
Expert Mod 15k+
P: 16,027
The Response object is ASP code. Perhaps you got it working in ASP and tried to use the same code for JavaScript. You can also use 301 HTTP redirection.
Jun 19 '08 #4

P: 19
Thanks it worked for me.
Regards
Jun 19 '08 #5

Post your reply

Sign in to post your reply or Sign up for a free account.