Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
<div id="menu0" class="clF">
<a href="template_07.htm" class="clS">Accessories</a><br>
<a href="template_07.htm" class="clS">Remove</a><br>
</div>
var el=document.getElementById("menu0");
el.focus()+1;
<script type="text/javascript">
function focusNextElement(el) {
var cNodes = el.childNodes;
for (var x = 0; x < cNodes.length; x++) {
if (cNodes[x].nodeType == 1) {
cNodes[x].focus();
break;
}
}
}
</script>
<div id="menu0" class="clF">
<a href="template_07.htm" class="clS">Accessories</a><br>
<a href="template_07.htm" class="clS">Remove</a><br>
</div>
<input type="button"
value="focusNextElement"
onclick="focusNextElement(document.getElementById('menu0'))" />
function focusNextElement(el) {
var cNodes = el.childNodes;
for (var x = 0; x < cNodes.length; x++) {
if (cNodes[x].nodeType == 1) {
cNodes[x].focus();
[b] var id = cNodes[x].getAttribute("id");[/b]
break;
}
}
}
function focusNextElement(el) {
var id;
var cNodes = el.childNodes;
for (var x = 0; x < cNodes.length; x++) {
if (cNodes[x].nodeType == 1) {
cNodes[x].focus();
id = cNodes[x].getAttribute("id");
break;
}
}
// now do something with "id"
}
if (cNodes[x].nodeType == 1 && cNodes[x].focus) {
cNodes[x].focus();
break;
}
for (var x = 0; x < cNodes.length; x++) {
if (cNodes[x].isFocused) {
break;
}
}