Use the write()-Method of the Popup’s document to put your markup there:
$.post(url, function (data) {
var w = window.open('about:blank');
w.document.open();
w.document.write(data);
w.document.close();
});
More Related Contents:
- how do i submit message to my email by html or js?
- JS hide function error
- How to create button to check uncheckable checkbox
- Need to scroll to bottom whenever a new div is added at bottom
- Definitive way to trigger keypress events with jQuery
- Validation of file extension before uploading file
- Moment js date time comparison
- Best cross-browser method to capture CTRL+S with JQuery?
- Obtain form input fields using jQuery?
- How to use jQuery in chrome extension?
- Access denied to jQuery script on IE
- How to upload a file using jQuery.ajax and FormData
- Event delegation vs direct binding when adding complex elements to a page
- Why does Jquery only affect the first div element? [duplicate]
- Get data from PHP array via AJAX and jQuery
- jQuery width() and height() return 0 for img element
- Mutation Observer for creating new elements
- How can I obtain the local time in jQuery?
- Insert space before capital letters
- Vertical Tabs with JQuery?
- move cursor to the beginning of the input field?
- How can I use setInterval and clearInterval?
- Convert HTML5 Canvas into File to be uploaded?
- jquery how to select all the class elements start with “text-“?
- How to trigger key combo with jQuery
- How to compare two JSON have the same properties without order?
- JQuery function only works within a function
- refresh div with jquery
- Remove everything within script and style tags
- How to focus an input field on Android browser through javascript or jquery