Link to home
Start Free TrialLog in
Avatar of Michael Robinson
Michael RobinsonFlag for United States of America

asked on

Can I put javascript code in my application.cfm file

Can I put javascript code in my application.cfm file

And do I need to trigger it some way to get it to run when the application.cfm runs?

I'm using coldfusion 9
SOLUTION
Avatar of Juan Ocasio
Juan Ocasio
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Also, put it in an iife to ensure it runs:

<script type="text/javascript">
   (function() { 

      alert('Hello');

   })();
</script>

Open in new window

ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Michael Robinson

ASKER

thanks guys