Advertisement
Hydrase

display name and age

Jan 15th, 2025
21
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.23 KB | None | 0 0
  1. <html>
  2. <head><title>BRUH</title>
  3. <script>
  4. function display(name,age){
  5. document.write("Your name is"+name+"<br>"+"Age is"+age);
  6. }</script>
  7. </head>
  8. <body>
  9. <button onclick="display('Aditya',19)">DISPLAY</button>
  10. </body>
  11. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement