RT# 82949 - changes section name from fees to pricing, better opiton
[freeside.git] / httemplate / elements / onload.js
1 <%doc>
2 Filter component to attach a window.onload handler.
3
4 Usage:
5   <script>
6   <&| elements/onload.js &>
7     if ( the_stars_are_right ) {
8       run_this_function();
9     }
10   </&>
11   </script>
12
13 </%doc>
14 (function() {
15   var myonload = function() {
16 <% $m->content %>
17   }
18   if ( window.addEventListener ) {
19     window.addEventListener('load', myonload);
20   } else if ( window.attachEvent ) {
21     window.attachEvent('onload', myonload);
22   }
23 })();