Open a new tab in browser with custom html code. Javascript -


this question has answer here:

how have function opens new tab in browser custom html generated in root tab?

you can this

var x=window.open(); x.document.open().write('<h1>test</h1>'); x.close(); 

note cannot force new tab user preference (of new window / new tab)


Comments

Popular posts from this blog

c - zlib and gdi32 with OpenSSL? -

java - inputmismatch exception -

ios - Align baselines with characters in large line heights with Text Kit -