Ahhhhhs gotcha... I had spaced on that, I stay away from window.open like the plague... modal windows for me all the way :-)
________________________________ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Friday, December 15, 2006 10:05 AM To: jQuery Discussion. Subject: Re: [jQuery] I need syntax help, please. On 12/15/06, Alex Cook <[EMAIL PROTECTED]> wrote: Second, you've constructed the click() function wrong... you don't need the var handle = bit... function () { window.open(this.href, 'some_target', 'width=550, height=550'); } is all you need. Actually, IIRC window.open returns a reference to the new window that was just created, allowing it to be controlled by the developer. So, there's nothing wrong with his click() function. FYI -- Also, IIRC, window.open will return null (or false, dunno which) if the window was somehow prevented from opening; very useful for detecting the presence of popup blockers. -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com
_______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
