Yeah you can just do

<script>
        Function()
</script>

from where-ever in your page.

Justin

>-----Original Message-----
>From: Todd Ashworth [mailto:[EMAIL PROTECTED]]
>Sent: Friday, January 12, 2001 3:40 PM
>To: CF-Talk
>Subject: Calling JavaScript when loading custom tag.
>
>
>I'm working on a custom tag that has a JavaScript function in it that needs
>to be called when the tag is loaded.  I tried using <body
>onload="function();">, but that doesn't work.  Is there another way to call
>a function on load from a 'page' nested inside another page?  My knowledge
>of JavaScript isn't all the great :(
>
>Todd Ashworth
>
>
>
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm

Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to