All pastes #609640 Raw Edit

Anonymous

public javascript v1 · immutable
·published 2007-07-09 00:21 UTC
rendered paste body
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head></head><body onload="img()"><script type="text/javascript">//function img() {var img = document.getElementsByTagName('img');var counter = 0;//for (counter=0; counter<img.length; counter++)//   document.write(img[counter] + "<br>");      document.write(img.alt);/*for(i=0; i<img.length; i++) {document.write(img.getAttribute('alt'));if(img.getAttribute('alt')=='hello') {document.write("yes");//img = '<a href="' + img.src + '">' + img.src + }} //document.write("yes");//}function test() {if(document.getElementsByTagName("img").src=="sdf") { document.getElementsByTagName("img").style.display="none"; }}*/</script><img src="sdf" alt="hello" id="ddd" style="display:block" onclick="test()" width="100" /></body></html>