<--- --------------------------------------------------------------------------------------- ---- Blog Entry: Calling Sub-Function in Javascript Different in Safari Author: Ben Nadel / Kinky Solutions Link: http://www.bennadel.com/index.cfm?dax=blog:50.view Date Posted: May 11, 2006 at 7:47 AM ---- --------------------------------------------------------------------------------------- ---> // This will NOT work in safari. function Foo2(){ alert("In Foo2 Method"); ( function Bar2(){ alert("In Bar2 Method"); } )(); } // Call the Foo2 method for testing. Foo2();