Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <title>Hello JS</title>
- <script>
- function showMessage(){
- document.getElementById("sometext").innerHTML = "Hello";
- }
- function clearMessage(){
- document.getElementById("sometext").innerHTML = "";
- }
- function redirectToUKTC(){
- window.open("https://uktc-bg.com/", '_blank');
- }
- </script>
- </head>
- <body>
- <button onclick="showMessage()">Click me</button>
- <button onclick="clearMessage()">Clear</button>
- <button onclick="redirectToUKTC()">Redirect to UKTC website</button>
- <p id="sometext"></p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement