Forums / Suggestions / Javascript For Datatypes In <head> / Comment52007
Sven Ryen
Monday 23 June 2003 11:55:50 pm
FWIW, scripts tag can be included anywhere on the page, not just within head tags. I include the javascript src tag at the top of the edit.tpl files of my datatypes.
For onload, how about this snippet:
<script type="text/javascript" language="Javascript"> <!-- document.body.onload = function() { alert('hello world'); } //--></script>