Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- function changeHead(){
- var x=document.getElementById("text1").value;
- if(x==null||x=="")
- alert("Invalid Header");
- else
- document.getElementById("demo").innerHTML=document.getElementById("text1").value;
- }
- </script>
- </body>
- </html>`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement