Skip to content

Commit 45127d6

Browse files
committed
Update DOM - Show anchors.js
1 parent ca75013 commit 45127d6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

javascripts/DOM - Show anchors.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"use strict";
22
var i, anchor, name;
3-
var anchors = document.anchors;
3+
var anchors = document.getElementsByTagName("a");
44
for (i = 0; i < anchors.length; i += 1) {
55
anchor = anchors[i];
66
id = anchor.id;

0 commit comments

Comments
 (0)