[Javascript] JavaScript syntax problem?

Dan ganz_gescheit at yahoo.co.uk
Sat Sep 14 05:47:24 CDT 2002


Hi all, 

The script below, embedded in html page, is causing me
some grief. While there is no syntax error message
generated, it does say the value passed in by
'filename' is undefined. So, if the value of filename
is "myfile.html", it complains about "myfile.html" not
being defined. 

My guess is that I made a mistake in the syntax of the
JavaScript below: 

document.write("<INPUT type='button' name='go_to'
value='Launch NOW' class='formButton' onclick
=launchNow(" + filename + ")>") 

Any ideas for correcting my error? 

Thanks. 


__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com



More information about the Javascript mailing list