Try this (note the "return false;" addition at the end): <a href="legal.php" onClick="MM_openBrWindow('this.href', '', 'toolbar=no, status=yes, scrollbars=no, resizable=no, width=790, height=600'); return false;">
-- Aaron Gould Web Developer Parts Canada ----- Original Message ----- From: "Curt Zirzow" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, July 16, 2003 2:15 PM Subject: Re: [PHP] Opening a Window with JavaScript > Todd Cary <[EMAIL PROTECTED]> wrote: > > [...] > > However, if I use an anchor, the form is submitted. Is there a way to > > prevent this? Here is the code I tried: > > > > <a href="#" onClick="MM_openBrWindow('legal.php', '', 'toolbar=no, > > status=yes, scrollbars=no, resizable=no, width=790, height=600')";"> > > I believe you can put something like (not tested): > <a href="javascript:MM_openBrWindow('legal.php', '', 'toolbar=no, > status=yes, scrollbars=no, resizable=no, width=790, height=600')";"> > > > > > Todd > > -- > > Curt > -- > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php