Siberian
13
Junior Poster
Recommended Answers
Jump to PostWorks for me, provided you change
write
toalert
Jump to PostTry replacing your js with this...
var one = document.getElementsByTagName("a"); if (one.length) { alert("correct, four anchors"); } else { alert("wrong"); }
Jump to PostWhat do you mean by "not working"? When you ask or report a bug or not working program, you should explain 3 things -- 1)Input data, 2)Expected output, and 3)What error you are getting, and 4)Explain what is not working (i.e. no alert display, the browser hung up, etc).
At …
All 9 Replies
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Siberian
13
Junior Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Taywin
312
Posting Virtuoso
iamthwee
commented:
nods
+14
Siberian
13
Junior Poster
pritaeas
2,194
¯\_(ツ)_/¯
Moderator
Featured Poster
Siberian
13
Junior Poster
JorgeM
958
Problem Solver
Team Colleague
Featured Poster
Siberian
13
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.