Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

write html in javascript

document.write("<h2>Hello World!</h2><p>Have a nice day!</p>");

// WARNING: The write() method deletes all existing HTML when used on
// a loaded document.

// The write() method cannot be used in XHTML or XML.

// Read more at https://www.w3schools.com/jsref/met_doc_write.asp
Comment

PREVIOUS NEXT
Code Example
Javascript :: local storal javascript 
Javascript :: jquery to br 
Javascript :: eslintrc ignore rule 
Javascript :: insert image into datatable 
Javascript :: list all files in s3 bucket 
Javascript :: how to delete a cookie in js 
Javascript :: rename file in js 
Javascript :: material ui location icon 
Javascript :: scroll event js 
Javascript :: how to move an element of an array in javascript 
Javascript :: react router dom 
Javascript :: check if at least one checkbox is checked 
Javascript :: mongoose docs where field exists 
Javascript :: javascript caesar cipher 
Javascript :: javascript get current date 
Javascript :: queryselectorall data attribute 
Javascript :: how to change checkbox state in jquery 
Javascript :: jQuery on right mouse click 
Javascript :: req body express 
Javascript :: js refresh iframe 
Javascript :: convert json result to datatable c# 
Javascript :: placeholder javascript 
Javascript :: Putting password in a zip file using node.js 
Javascript :: nodejs date difference 
Javascript :: javascript file drag and drop 
Javascript :: javascript array functions 
Javascript :: rounding to nearest hundredth js 
Javascript :: javascript remove property from object 
Javascript :: on click jquery 
Javascript :: jquery get text of input 
ADD CONTENT
Topic
Content
Source link
Name
4+1 =