Permette di inserire in un oggetto ID un contenuto
<!DOCTYPE html>
<html>
<body>
<p>Click the button to create a variable, and display the result.</p>
<button onclick=" myFunction()" >Try it</button>
<p id=" demo" ></p>
<p id=" FIlippo" > </p>
<script>
function myFunction()
{
var carname=" Alfaromeo" ;
document.getElementById(" demo" ).innerHTML=carname;
document.getElementById(" FIlippo" ).innerHTML=" Filippo" ;
}
</script>
</body>