Syntax-error in Javascript

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • xTKx
    New Member
    • Nov 2008
    • 1

    Syntax-error in Javascript

    Hi,

    I've begun to train myself at programing and got a small problem. I have writed a small programm but in the first line he found a syntax-error.

    1. < script type = "text/JavaScirpt" language = "JavaScript " >

    and he say: Line 1 Column 1 Error:Identifie r expected

    what shall I do now?
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    It should be
    Code:
    <script type="text/javascript">
    Note the case of letters and the spelling. That may not have been the error. If you're testing in IE, it can be awful at giving the correct line numbers of errors and for giving helpful error messages.

    Comment

    Working...