Tag Archives: fields

HTTP headers are just pieces of information of the request and response. Browsers will automatically send this kind of information by default. Sometimes you’ll want to modify these HTTP headers so you can let servers know what to expect. Servers also send you back HTTP headers which allow you to know more information about the response itself. Sending Custom Headers …

It’s time to take a look at keyboard events. Another popular feature of JavaScript is the capability to detect which keys were pressed and how they were pressed. Let’s first update our document to this. [crayon-5ce9583decf92303197546/] Sweet! Now, let’s clear up the script and add this bit of code. [crayon-5ce9583decfa3565416828/] The first kind of event is the keydown event. This …