Difference between revisions of "Team:Czech Republic/Template:Scripts"
Line 34: | Line 34: | ||
<script> | <script> | ||
− | window.onload = function | + | window.onload = function(){ |
+ | window.document.body.onload = doThis; // note removed parentheses | ||
+ | }; | ||
+ | |||
+ | function doThis() | ||
{ | { | ||
var paragraphs = document.getElementsByTagName("p"); | var paragraphs = document.getElementsByTagName("p"); |
Revision as of 07:56, 10 September 2015