in reply to Re: Re: Java script question
in thread Java script question

one thing you should use to debug this is netscape!

type in
javascript:
in the url field
gets you the javascript debugger
it should tell you what the error is
in a much clearer way than ie and/or visualdev would

one thing:
you dont need the
javascript:
if the javascript function is in the html file {or perl output}
aka
onmouseover=pop('Avaerage lenght of game played','#CCCCCC')

also you might notice the semi colon after your dbl quote
thats not right and since your only using one
function , in javascript you dont need that semi colon

here is your code reworked and running:
<html> <head> <script> function kill() { alert('kill'); } function pop (text, color) { alert (text +" "+ color); } </script> </head> <body> <a href="js.html" ONMOUSEOVER="pop('Avaerage lenght of game played','# +CCCCCC')" ONMOUSEOUT="kill()">AVERAGE</a> </body> </html>

always try to build a flat file to test javascripts
before inserting them into perl code
hope that helps