5,953
edits
No edit summary |
No edit summary |
||
Line 5: | Line 5: | ||
<html> | <html> | ||
<script> | <script> | ||
var numbers = document. | var numbers = document.getElementsByTagName("a"); | ||
console.log("lunghezza: "+numbers.length); | console.log("lunghezza: "+numbers.length); | ||
var i; | var i; | ||
for (i = 0; i < numbers.length; i++) { | for (i = 0; i < numbers.length; i++) { | ||
console.log(numbers[i]); | //console.log(numbers[i]); | ||
var target = numbers[i].href; | |||
console.log(target); | |||
target = target.replace("Logisch-philosophische_Abhandlung", "Logisch-philosophische_Abhandlung_(Darstellung_in_Baumstruktur)"); | |||
numbers[i].href = target; | |||
} | } | ||
</script> | </script> | ||
</html> | </html> |