Advertisement
Hiteshw11

Functions in Javascript

Mar 24th, 2020
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE HTML>
  2. <html>
  3.     <head>
  4.         <title>My Web Page</title>
  5.             <script>
  6.                 //document.write('<h1>Hello World</h1>');
  7.                 function Showmessage(Firstname)
  8.                 {
  9.                     document.write('<h1>Hey! '+Firstname+' its me</h1>');
  10.                 }
  11.                
  12.             </script>
  13.     </head>
  14.     <body>
  15.         <script>
  16.             Showmessage("John");
  17.         </script>  
  18. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement