Title: Chapter 8. Onkeypress is deprecated. · Issue #28 · bethrobson/Head-First-JavaScript-Programming · GitHub
Open Graph Title: Chapter 8. Onkeypress is deprecated. · Issue #28 · bethrobson/Head-First-JavaScript-Programming
X Title: Chapter 8. Onkeypress is deprecated. · Issue #28 · bethrobson/Head-First-JavaScript-Programming
Description: Hello everyone! I've got a minor problem with function init(). The Visual Studio Code says that the onkeypress event is deprecated. Could you tell me please what event should be used instead? As far as I managed to learn the onkeydown ev...
Open Graph Description: Hello everyone! I've got a minor problem with function init(). The Visual Studio Code says that the onkeypress event is deprecated. Could you tell me please what event should be used instead? As fa...
X Description: Hello everyone! I've got a minor problem with function init(). The Visual Studio Code says that the onkeypress event is deprecated. Could you tell me please what event should be used instead? A...
Opengraph URL: https://github.com/bethrobson/Head-First-JavaScript-Programming/issues/28
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Chapter 8. Onkeypress is deprecated. ","articleBody":"Hello everyone! \r\nI've got a minor problem with function init(). The Visual Studio Code says that the **onkeypress** event is deprecated. Could you tell me please what event should be used instead? As far as I managed to learn the **onkeydown** event fits best. Loads of thanks in advance! \r\n\r\nHere is the snippet of code that I'm talking about:\r\nfunction init() {\r\nvar fireButton = document.getElementById(\"fireButton\");\r\nfireButton.onclick = handleFireButton;\r\nvar guessInput = document.getElementById(\"guessInput\");\r\nguessInput.**onkeypress** = handleKeyPress;\r\n}","author":{"url":"https://github.com/Bers96","@type":"Person","name":"Bers96"},"datePublished":"2024-07-26T19:59:22.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/28/Head-First-JavaScript-Programming/issues/28"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:260a7803-e3fd-9d36-6898-25db7e956c3d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E8EE:3F8836:7366A2:9E461C:697282ED |
| html-safe-nonce | 2bd0d209af368d103f691d60c5f78b97fdb444305d4fed70119b6c74c0bc671c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFOEVFOjNGODgzNjo3MzY2QTI6OUU0NjFDOjY5NzI4MkVEIiwidmlzaXRvcl9pZCI6IjYwMTgyMjU4NjMzMjMxODk5OTciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | c150e14fafe47ca629ffa0ee21f52df8265a82c73d30677868f52c6a76a4dde1 |
| hovercard-subject-tag | issue:2432888309 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/bethrobson/Head-First-JavaScript-Programming/28/issue_layout |
| twitter:image | https://opengraph.githubassets.com/78366cf2e09504212a76c4601602b0fd7f668539b6902eb8b18c7dfab63374be/bethrobson/Head-First-JavaScript-Programming/issues/28 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/78366cf2e09504212a76c4601602b0fd7f668539b6902eb8b18c7dfab63374be/bethrobson/Head-First-JavaScript-Programming/issues/28 |
| og:image:alt | Hello everyone! I've got a minor problem with function init(). The Visual Studio Code says that the onkeypress event is deprecated. Could you tell me please what event should be used instead? As fa... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Bers96 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7631aa5e32c11c73e45f19f2aaeaa7e0305d2ec80414866e8b020f3c2144ccae |
| turbo-cache-control | no-preview |
| go-import | github.com/bethrobson/Head-First-JavaScript-Programming git https://github.com/bethrobson/Head-First-JavaScript-Programming.git |
| octolytics-dimension-user_id | 30760 |
| octolytics-dimension-user_login | bethrobson |
| octolytics-dimension-repository_id | 8868903 |
| octolytics-dimension-repository_nwo | bethrobson/Head-First-JavaScript-Programming |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 8868903 |
| octolytics-dimension-repository_network_root_nwo | bethrobson/Head-First-JavaScript-Programming |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 40f44656d2185a364dd710032a2e10ee2f1d7e20 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width