Re: Problem with window.open
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: Problem with window.open

From: Randy Webb <HikksNotAtHome@aol.com>
Date: Sat Apr 29 2006 - 20:44:16 CEST

Evertjan. said the following on 4/29/2006 5:23 AM:
> VK wrote on 29 apr 2006 in comp.lang.javascript:
>
>> Basically it's a synchronization problem with event bubbles. By using
>> in anonymous handler:
>> onclick="return functionName();" instead of onclick="functionName();
>> return false;" you ensure the event synchronization by "locking" it in
>> the current execution context.
>>
>
> Not fully understanding much of this stuff,
> I returned to the bubbles in my bath,
> ... and saw some glimmer of logic in the above.

Forget what you saw as it was a mirage in the desert.

> Could anyone make an experimental little script
> demonstrating such synchronisation error?

No because its not a problem. The only difference is in where you need
to return true and false. In the first the function has to return true
or false, in the second it doesn't. The advantage of the first is if
there is a script error in the function then you don't crash the page,
the second one could. Crashing the page meaning that your page is now
broken with no navigation.

-- 
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Received on Mon May 1 05:26:59 2006