link to external javascript file within html for reuse

(linkto.html) <!doctype> <html> <head> <title>link to java script file</title> <script type="text/javascript" src="buttonevent.js"></script> </head> <body> <form> <input type="submit" value="submit" onclick="call()"/> </form> </body> </html> buttonevent.js function call(){ alert("hello friends,how are you?"); }

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.