Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

set width height of html using js

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
  </head>

  <body>
    <div id="box" style="background-color: salmon">Box 1</div>

    <script src="index.js"></script>
  </body>
</html>
Source by bobbyhadz.com #
 
PREVIOUS NEXT
Tagged: #set #width #height #html #js
ADD COMMENT
Topic
Name
6+2 =