Re: JS Help
by "Cyanide _7" <leo7278(at)hotmail.com>
|
Date: |
Mon, 05 Jun 2000 23:55:06 CDT |
To: |
webmaster(at)rossidesigns.net |
Cc: |
brian(at)livenet.net, hwg-languages(at)hwg.org |
|
todo: View
Thread,
Original
|
|
this wont work rossi. dont forget the original double quotes starting the
event handler. this will error, because the js statement now defined is
invalid code. first argument in setTimeout is an evaluated string, and
quotes contained within may be escaped. try this:
onload="
setTimeout('openAWindow(\'contact-pu.html\',\'contact\',500,480,1)',
5000)"
- Cyanide_7
>
>onload="setTimeout('openAWindow("contact-pu.html","contact",500,480,1)',
>5000)"
>
>You should alternate when you nest ' & "
>
>
>Rossi Designs
>PO Box 1084
>Holly Hill, FL 32125-1084
>Phone : (904) 226-8979
>URL : http://rossidesigns.net
>----- Original Message -----
>From: Brian V Bonini <brian(at)livenet.net>
>To: HWG Languages <hwg-languages(at)hwg.org>
>Sent: Monday, June 05, 2000 4:35 PM
>Subject: JS Help
>
>
>| Can someone help with this, I can't seem to get the syntax correct....
>|
>| onload="setTimeout('openAWindow('contact-pu.html','contact',500,480,1)',
>| 5000)"
>|
>| It works fine(Well opens the window at least) if I don't try to pass
>| anything to
>| "openAWindow"
>| IE:
>| onload="setTimeout('openAWindow()', 5000)"
>|
>|
>
________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA