anonymous
2008-07-16 03:25:52 UTC
a) var images=document.getElementsByTagName(images);
b) var images=document.getElementsById("img");
c) var images=document.getElementsByTagName("img");
d) var images=document.getElementsById("images")
I chose b) but it's wrong. I don't understand why...Can someone please explain to me?
-------------------------
Which of the following is a correct way to handle an event when a button is clicked?
a) onclick=alert('you click me');
b) onclick="alert("you click me");"
c) onclick="alert('you click me');"
d) onclick="alert(you click me);"
I chose a) but it's wrong. Can someone please explain to me?
-----------