I have following pages
- Page1.html
- Page2.html
- JavaScript.js
My first page makes ajax call on button click and receives response successfully..
I want to load that data in another page (Page2.html)..
$.ajax(
.....
.....
.....
success: function(response){
window.location.href="Page2.html";
$("#content").append(data);
}
);
My div with id of content is on another page(Page2.html)... Note: All my script are in the js file..
How can I perform the above task?
ajax
call in page 2 itself. Do you have any special scenario you are doing it this way?? – Rohit416