You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by Dave <ja...@yahoo.com> on 2009/06/10 18:28:21 UTC

trinidad: how to add javascript/style/body onload programmatically

For trinidad, 1. how to add javascript/style inside html head programmatically? For example,<link rel="stylesheet" href="/my.css" type="text/css" /><script type="text/javascript" src="/my.js"> 2. how to add body onload script? Thanks for help.Dave    


      

Re: trinidad: how to add javascript/style/body onload programmatically

Posted by alvaro tovar <al...@gmail.com>.
for the 1 you can use ${}
for the 2
<body onload="callJS()">

2009/6/10 Dave <ja...@yahoo.com>

> For trinidad,
>
> 1. how to add javascript/style inside html head programmatically? For example,
>
> <link rel="stylesheet" href="/my.css" type="text/css" />
>
> <script type="text/javascript" src="/my.js">
>
>
>
> 2. how to add body onload script?
>
>
>
> Thanks for
>  help.
>
> Dave
>
>
>
>
>
>
>
>
>
>
>