how to use javascript.js in html

<!doctype> <!--two ways to use script in html 1.) embed with html script code 2.) link to script file --> <html> <head> </head> <body> <script> function call(){ document.write("hello friends how are you?"); } </script> <input type="submit" value="submit" onclick="call()"/> </body> </html>

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.