- For the script element the HTML specification required that you must specify the "type" attribute. It could work without, which depend on the browser, but is is not recomended.
<body onclick="document.write('Testing onclick event')" > click on me! </body>
- You can specify as many script elements on the same web-page as you want, but remember they will be executed in the order they are included.
© 2010 by Finnesand Data. All rights reserved.
This site aims to provide FREE programming training and technics.
Finnesand Data as site owner gives no warranty for the
correctness in the pages or source codes.
The risk of using this web-site pages or any program
codes from this website is entirely at the individual user.