Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to aadd variable in html tag in js

window.onload = function() {
  var name = prompt("What's your name?");
  var lengthOfName = name

  document.getElementById('output').innerHTML = lengthOfName;
};
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #aadd #variable #html #tag #js
ADD COMMENT
Topic
Name
2+7 =