Difference between revisions of "Team:Czech Republic/Template:Scripts"
Line 25: | Line 25: | ||
function doThis() { | function doThis() { | ||
var paragraphs = document.getElementsByTagName("p"); | var paragraphs = document.getElementsByTagName("p"); | ||
− | + | var len = paragraphs.length; | |
+ | for (var i = 0; i < len; i++) { | ||
var elem = paragraphs[i]; | var elem = paragraphs[i]; | ||
if (elem.innerHTML == '<br>') { | if (elem.innerHTML == '<br>') { |
Revision as of 08:06, 10 September 2015