Skip to content

Instantly share code, notes, and snippets.

@neodigm
Created July 17, 2019 16:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save neodigm/5d8c10c1d8d63a93622c0c9111337420 to your computer and use it in GitHub Desktop.
Save neodigm/5d8c10c1d8d63a93622c0c9111337420 to your computer and use it in GitHub Desktop.
"use strict"; // Act on Tab when link clicked
var oTb, oLk;
oTb = document.querySelectorAll(".tablink4")[0];
oLk = document.querySelectorAll("[href='/#tablink4']")[0];
if( oTb && oLk ){
oLk.addEventListener( "click", function(e){
oTb.click();
} );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment