By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,379 Members | 1,870 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,379 IT Pros & Developers. It's quick & easy.

What is wrong in my script?

P: n/a
In article <3e**********************>, "Mike" <mi**> writes:
Please can you help ?:
Glad to.
<script language="JavaScript" type="text/JavaScript">
function closecheck ()"
First error: unterminated string constant. Get rid of the " at the
end of the line.
if (page2.htm !== true)
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.
window.close ()

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

Michael F. Stemper
#include <Standard_Disclaimer>
Visualize whirled peas!

Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply

P: n/a
JRS: In article <20***********************>, seen in
news:comp.lang.javascript, Michael Stemper <ms******>
posted at Fri, 27 Jun 2003 15:50:17 :-
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.

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

John Stockton, Surrey, UK. ? Turnpike v4.00 MSIE 4
<URL:> Jim Ley's FAQ for news:comp.lang.javascript
<URL:> JS maths, dates, sources.
<URL:> TP/BP/Delphi/JS/&c., FAQ topics, links.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.