Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>
<script type="text/javascript">
window.onload = function () {
console.log(document.querySelectorAll('div:nth-child(6) img'));
console.log(document.querySelectorAll('div:nth-child(6) img'));
console.log(document.querySelectorAll('div:nth-child(6) img'));
}
</script>
</head>
<body>
<div></div>
<div></div>
<div></div>
<div><img /></div>
<div></div>
<div><img /></div>
</body>
</html>
@subtleGradient
Copy link

subtleGradient commented Nov 8, 2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment