Tabindex.js

From Level Access Web Labs
Revision as of 02:43, 9 February 2014 by Javila (talk | contribs) (Created page with "javascript:(function(){ var el = document.querySelectorAll('[tabindex]'); var str; var headers=[]; var sentinel; if (el.length>0) { for (var i=0; i<el.length; i++) { s =...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

javascript:(function(){ var el = document.querySelectorAll('[tabindex]'); var str; var headers=[]; var sentinel;

if (el.length>0) {

	for (var i=0; i<el.length; i++) {

s = document.createElement('Span'); t = document.createTextNode(" Title="+el.item(i).title +" "); s.appendChild(t); s.style.backgroundColor = 'antiqueWhite'; s.style.color = 'black'; el.item(i).parentNode.insertBefore(s,el.item(i)); } } else { alert('no elements with tabindex'); }

})();