What is wrong in my script?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Michael Stemper

    What is wrong in my script?

    In article <3ef969f7$0$542 9$626a54ce@news .free.fr>, "Mike" <mike@notspamin gplease.cc> writes:
    [color=blue]
    >Please can you help ?:[/color]

    Glad to.
    [color=blue]
    > <script language="JavaS cript" type="text/JavaScript">
    > function closecheck ()"[/color]

    First error: unterminated string constant. Get rid of the " at the
    end of the line.
    [color=blue]
    > {
    > if (page2.htm !== true)[/color]

    Second error: the test for inequality is != not !==
    Third error: you should test for something being equal or not equal
    to true, you should just test it directly.
    [color=blue]
    > window.close ()
    > }[/color]

    Fourth error: your function just ended here - check the matching {}.

    --
    Michael F. Stemper
    #include <Standard_Discl aimer>
    Visualize whirled peas!

  • Dr John Stockton

    #2
    Re: What is wrong in my script?

    JRS: In article <200306272050.h 5RKoHU12946@mic key.empros.com> , seen in
    news:comp.lang. javascript, Michael Stemper <mstemper@sieme ns-emis.com>
    posted at Fri, 27 Jun 2003 15:50:17 :-
    [color=blue]
    > The comparison with true has been one of my pet peeves for
    >years - since the 1977 ANSI standard for Fortran came out, actually.
    >That's where the LOGICAL data type was introduced, and its abuse started.[/color]

    The LOGICAL type is in the ICT 1900 FORTRAN manual, dated 1966/7;
    documentation implies a matching ASA standard.

    --
    © John Stockton, Surrey, UK. ?@merlyn.demon. co.uk Turnpike v4.00 MSIE 4 ©
    <URL:http://jibbering.com/faq/> Jim Ley's FAQ for news:comp.lang. javascript
    <URL:http://www.merlyn.demo n.co.uk/js-index.htm> JS maths, dates, sources.
    <URL:http://www.merlyn.demo n.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.

    Comment

    Working...