Wednesday 10 May 2017

different output methode

<!DOCTYPE html>
<html>
<body>

<script>
window.alert(5+6,"this is alert window");
console.log(5 + 6);
document.write("this is document wite",9+9);

</script>

<p id="para"> this is para</p>
<button type="button" onClick='document.getElementById("para").innerHTML="hai changed"'>click here</button>

<p id="paraDoc">this text is replace by document write</p>
<button type="button" onClick='document.write("it will delete all html elements that can be know by inpecting the page") '>click here document write button</button>


</body>
</html>

No comments:

Post a Comment