Back

Explore Courses Blog Tutorials Interview Questions
0 votes
2 views
in Java by (9.5k points)

Can anyone tell me how to open a new window in JavaScript and insert HTML data without having to link the HTML file?

1 Answer

0 votes
by (19.7k points)

Use 

  1. window.open ----> to open new window/tab in JavaScript

  2. Document.write ---> to write HTML content to the open window

Interested in Java? Check out this Java Certification by Intellipaat.  

Related questions

0 votes
1 answer
asked Feb 16, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer
0 votes
1 answer
0 votes
1 answer
asked Mar 31, 2021 in Java by dante07 (13.1k points)
0 votes
1 answer

Browse Categories

...