{"id":22953041,"url":"https://github.com/devorbitus/backspace-block","last_synced_at":"2025-11-01T06:03:49.650Z","repository":{"id":23553408,"uuid":"26920728","full_name":"devorbitus/backspace-block","owner":"devorbitus","description":"Bower component to block the backspace button from working when user is not on an input field so that the browser doesn't trigger the back button","archived":false,"fork":false,"pushed_at":"2014-11-21T20:39:28.000Z","size":140,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-28T02:13:32.869Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/devorbitus.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-11-20T16:19:08.000Z","updated_at":"2015-11-04T17:56:43.000Z","dependencies_parsed_at":"2022-08-18T14:12:11.039Z","dependency_job_id":null,"html_url":"https://github.com/devorbitus/backspace-block","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/devorbitus/backspace-block","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devorbitus%2Fbackspace-block","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devorbitus%2Fbackspace-block/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devorbitus%2Fbackspace-block/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devorbitus%2Fbackspace-block/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devorbitus","download_url":"https://codeload.github.com/devorbitus/backspace-block/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devorbitus%2Fbackspace-block/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":282101884,"owners_count":26614352,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-11-01T02:00:06.759Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-14T15:52:10.723Z","updated_at":"2025-11-01T06:03:49.597Z","avatar_url":"https://github.com/devorbitus.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# backspace-block\n\nBower component to block the backspace button from working when user is not on an input field so that the browser doesn't trigger the back button.\n\n## Installation\n\n### bower\n\n```shell\nbower install backspace-block\n```\n\nThen add a `\u003cscript\u003e` to your `index.html`:\n\n```html\n\u003cscript src=\"/bower_components/backspace-block/backspace-block.js\"\u003e\u003c/script\u003e\n```\n\n## Features\n\nAfter adding this project to your application the backspace key will only be registered by the browser when you are in an input field or a text area. There are no dependancies for this to function properly.\n\n## Credits\n\nThis originated from JP Richardson's excellent library [prevent-backspace](https://github.com/jprichardson/prevent-backspace) which was written as a repackaging of an answer to [this](http://stackoverflow.com/questions/1495219/how-can-i-prevent-the-backspace-key-from-navigating-back) StackOverflow question. Prevent-backspace is very useful for anyone using browserifiy or component but I wanted it to be able to be added with bower directly, as well as adding support for blocking when on radio buttons, checkboxes, selects, and submit buttons.\n\n## License\n\n(MIT License)\n\nCopyright 2014, Chris Gruel  \u003ccgruel@gmail.com\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevorbitus%2Fbackspace-block","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevorbitus%2Fbackspace-block","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevorbitus%2Fbackspace-block/lists"}