save

by Daniel Hall

HTML

<button id="text">make text</button>
<div id="body"><p id="mass"></p></div>

CSS

#body {
	  position: absolute;
		left: 5%;
		top: 20%;
		width: 80%;
		background-color: gray;
		height: 50%;
}

JavaScript

var text document
   .getElemenetById("text");
text.addEventListener("click",replaceIt);

function replaceIt(){
   var myMess = prompt("text")
	 document.getElementById("mass")
	    .innerHTML = myMess;