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: www.github.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:c9489f1e-0877-6da4-b568-29fa9367e647 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C7EA:A6207:1A08145:259597E:6A60993B |
| html-safe-nonce | e6e0f7c442392c3210f18e7c3cbf2572594b23abf172984d79b311f425395954 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDN0VBOkE2MjA3OjFBMDgxNDU6MjU5NTk3RTo2QTYwOTkzQiIsInZpc2l0b3JfaWQiOiIyODAxODI0MDEzMjc0MzU2MDI3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ca5343c6dd603366447df6777c6c46e3de6b271a8947ea2318fa0d5d99777258 |
| 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 | 5142d23feb6a650085422edf60d68c93777dfa6c4b0c9151eb464d3e4969f618 |
| 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 | b2111e158bcd758ab9d0446577ae8f5dd78fcca8 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width