Forum Moderators: mack

Message Too Old, No Replies

Help needed with this script

         

DaffyDuck

8:04 pm on Jun 18, 2007 (gmt 0)

10+ Year Member



Hello everyone

Im trying to add a "Open new browser window (on click) script" to one of my web pages and i have found the following script

<a href="about-us.htm" onclick="window.open(toolbar=1,resizable=0,status=0,menubar=0,scrollbars=1) ;return false;">Open in new window</a>

But there's something wrong with it as it gives a 404 error page with a long URL consisting

toolbar=1,resizable=0,status=0,menubar=0,scrollbars=1 on the URL

Can anyone check wots wrong with is script and give me the right format

Thanks

Demaestro

8:13 pm on Jun 18, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



onclick="window.open(toolbar=1,resizable=0,status=0,menubar=0,scrollbars=1)

SHOULD BE

onclick="window.open(http://www.example.com)