471,122 Members | 1,200 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,122 software developers and data experts.

What is wrong in my script?

In article <3e**********************@news.free.fr>, "Mike" <mi**@notspamingplease.cc> 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
1 2379
JRS: In article <20***********************@mickey.empros.com>, seen in
news:comp.lang.javascript, Michael Stemper <ms******@siemens-emis.com>
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. ?@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.demon.co.uk/js-index.htm> JS maths, dates, sources.
<URL:http://www.merlyn.demon.co.uk/> TP/BP/Delphi/JS/&c., FAQ topics, links.
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by tin | last post: by
4 posts views Thread by F. Da Costa | last post: by
6 posts views Thread by Rtritell | last post: by
4 posts views Thread by Paul | last post: by
2 posts views Thread by Miguel Dias Moura | last post: by
8 posts views Thread by Midnight Java Junkie | last post: by
16 posts views Thread by SirG | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.