Skip to content

Instantly share code, notes, and snippets.

@dperini
Created Dec 18, 2009
Embed
What would you like to do?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Focus Test</title>
<style type="text/css">
:focus { background-color: red; }
</style>
<script type="text/javascript">
window.onload = function() { document.body.setAttribute("tabindex", "1"); };
</script>
</head>
<body>
<p><input type="text" tabindex="2"></p>
<p><a href="#" tabindex="3">First link</a></p>
<p><a href="#" tabindex="4">Second link</a></p>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment