If there is no server-side involved, you can save the data using
Window.localStorage (check if browser compatibility is OK for you)
window.location.href = 'drilldown.html'; // want to post the data this in redirection
var data = localStorage.getItem('myData');
sessionStorage which will be cleaned up after browser restart.
I have ajax call and pull the data and I want to send the response to next page in ajax success and get the data in drilldown.html
window.location.href = 'drilldown.php'; // want to post the data this in redirection
The only way I see this is by adding the response data as a query parameter to your URL
If your ajax url is the same as the location you want to redirect, why not go there directly? There seems to be a problem with your flow. You send an ajax request to drilldown, and then redirect the user to drilldown.