+ 2
How to import html files and open them in new tab when an button is clicked by javascript
button tab
2 Antworten
+ 2
Using jQuery:
$.post(url, function (data) {
var win=window.open('about:blank');
with(win.document) {
open();
write(data);
close();
}
});
Set this as the onClick event handler for your button.
You may have issues with pop-up blockers
+ 2
can you give an sample program