Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Preventing "Prevent this page from creating additional dialogs"
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Evertjan.  
View profile  
 More options Apr 6 2012, 3:22 am
Newsgroups: comp.lang.javascript
From: "Evertjan." <exjxw.hannivo...@interxnl.net>
Date: 06 Apr 2012 07:22:13 GMT
Local: Fri, Apr 6 2012 3:22 am
Subject: Re: Preventing "Prevent this page from creating additional dialogs"
Gene Wirchenko wrote on 06 apr 2012 in comp.lang.javascript:

>>But it does, it defaults to not false, try it out.

>      I did with
>           alert(alert("Hi"));
> I got an alert with "Hi" then one with "undefined".  This was on IE 9.
> All of my examples in this post were done under IE 9.

Never touch the stuff.

>>There are no internal or defined functions without an implicit return
>>value in javascript.

>>Think it over, why should this crash?

>>if (alert(1)) ...

>      It did not crash for me.  I gave it an else clause, and that
> clause was executed.

So it was interpreted as not being false, so true.

If no return was given, the code woud crash/halt.

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.