255 0 0 0
Last Updated : 2023-09-23 20:08:34
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