Click here to Skip to main content
15,895,256 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
I have an ajax form.when I submit it result displays in same page.But I want to display result in another page by redirection.
Posted
Updated 21-Nov-14 22:46pm
v3

1 solution

You can redirect the user using JavaScript code as this,

JavaScript
window.location.replace("http://example.com/page2.html"); // redirect 


But make sure that you've saved the response that you want to show him on that page. :-) More on Location.replace()[^].
 
Share this answer
 
Comments
Gowri Shankar B 22-Nov-14 5:31am    
thanks for ur reply.But this one redirects with page refresh and it is a link but I want view to be shown

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900