I'm trying to get Javascript to execute a function when the page finishes loading:
and directly below that is the function:<body background="exptextb.jpg" onLoad="javascript:pM">
But for some reason that doesn't seem to work, I just get the error in IE that "pM is undefined". It looks okay to me, or is there something I'm missing?! I've tried just putting ..."onLoad="pM"... instead of javascript:pM but it still doesn't work.<SCRIPT LANGUAGE=JavaScript>
function pM {
WindowsMediaPlayer.FileName = "/mediabase/" + <?php echo $tracktoplay ?>;
}
</SCRIPT>
TIA for any help
jonat8