Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Overwrite the browsers default behaviour when pressing tab. While navigating through a form using the tab key the focus will not be set outside of the form ( e.g. the browsers url bar ).
A jQuery plugin to overwrite the browsers default behaviour when pressing tab. While navigating through a form using the tab key the focus will not be set outside of the form ( e.g. the browsers url bar ).
Run npm install tab_trap
from the root directory of your application.
Include jQuery on your page if you don't already have it.
<script type="text/javascript" src="node_modules/jquery/dist/jquery.min.js"></script>
Include the plugin.
<script type="text/javascript" src="node_modules/tab_trap/jquery.tab_trap.js"></script>
Simply call the plugins main function on the element(s) you want it applied to.
Apply to all form elements:
$( "form" ).trapTabs();
Apply to a specific element:
$( "#myForm" ).trapTabs();
In case you still want to do something with the keydown event of the Tab key there is the onTab callback option:
$( "form" ).trapTabs( {
onTab: function() { console.log( "Tabbing out of: " + $( this ).attr( "id" ) ); }
} );
FAQs
Overwrite the browsers default behaviour when pressing tab. While navigating through a form using the tab key the focus will not be set outside of the form ( e.g. the browsers url bar ).
The npm package tab_trap receives a total of 1 weekly downloads. As such, tab_trap popularity was classified as not popular.
We found that tab_trap demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.