HTML Editor
<!DOCTYPE html> <html lang="en-US"> <head> <title>Example Page - Wikimass</title> </head> <body> <p>Click on the button to display the title of this page</p> <button onclick="myFunction()">Click Me</button> <p id="point"></p> <script> var x = document.getElementById("point"); function myFunction(){ x.innerHTML = document.title; } </script> </body> </html>
OUTPUT
×

Save as Private