Difference between revisions of "Additional Content on Hover or Focus"

From Level Access Web Labs
Jump to navigation Jump to search
Line 21: Line 21:
 
 
 
function keyListener(e) {
 
function keyListener(e) {
  code = e.code ? e.code :  e.which
+
  if (keyCode == 27)
  if (code == "Escape")
 
 
  document.getElementById("additional").setAttribute("hidden","hidden");
 
  document.getElementById("additional").setAttribute("hidden","hidden");
 
}
 
}

Revision as of 19:45, 9 November 2018