
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
backtrack-js
Advanced tools
A simple way to allow browsing history linking.
$ yarn add backtrack-js
NPM$ npm install backtrack-js
Assuming you have a back button with id="universal_back_button":
<a href="" id="universal_back_button">Back</a>
On each page load, require and create a new Backtrack instance with the expected backButtonId.
var Backtrack = require("backtrack-js");
var backtrack = new Backtrack("universal_back_button");
Call configureBackButton() to configure the back button's URL (via href attribute) and to pop pages when clicked (via onClick attribute).
backtrack.configureBackButton();
Call pushPage() to push the current page into the history stack so that when the user moves to the next page, clicking the back button, will return the user to the current page.
backtrack.pushPage();
That's it! Your back button will now automatically be populated with the previous page's URL.
We'd love to accept your patches and contributions to this project! Checkout contributing and code of conduct to learn more.
Refer to the license file.
FAQs
A simple way to allow browsing history linking.
The npm package backtrack-js receives a total of 8 weekly downloads. As such, backtrack-js popularity was classified as not popular.
We found that backtrack-js 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.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.