Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] JavaScript syntax problem?
- From: javascript@xxxxxxxxxx (Dan)
- Subject: [Javascript] JavaScript syntax problem?
- Date: Sat, 14 Sep 2002 11:47:24 +0100 (BST)
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
- Follow-Ups:
- [Javascript] JavaScript syntax problem?
- From: Rodney Myers
- [Javascript] JavaScript syntax problem?
- Prev by Date: [Javascript] Disable View Source...
- Next by Date: [Javascript] JavaScript syntax problem?
- Previous by thread: [Javascript] Validate date via Regular Expression
- Next by thread: [Javascript] JavaScript syntax problem?
- Index(es):