651 0 0 0
Last Updated : 2025-04-28 21:26:33
In this snippet I will explain how to open a new tab with AJAX response and print it directly
You can open a new tab with response data from AJAX calls using this code
var w = window.open();
$(w.document.body).html(data); // data is the response from ajax