The browser BOM can be accessed by JavaScript. Here is a basic look at how JS can create "back" and "forward" browser MORE q
By DarkMG73 on April 15th, 2020 in
The Interactions area of the JavaScript Cheat Sheet covers all of the ways that JavaScript can interact with other entities, be it the DOM, API’s, printers, etc
Here I explore how to utilize the JavaScript DOM Web API to manipulate document elements. It highlights methods for accessing and modifying elements, such as retrieving elements by ID, creating new ones, and altering styles. Additionally, it describes various data types within the DOM API, enhancing understanding of its structure and capabilities. MORE q
By DarkMG73 on April 14th, 2020 in
It is a good idea to perform basic tests on user-inputted data before sending it to the server just to make sure it meets basic standards. This is not, in any way, a substitute for actual security tests that must be performed on the server before consuming the data. Any code running in the browser can be altered, so truly protecting the server from malicious code sent via form data can only be done away from the MORE q
By DarkMG73 on April 12th, 2020 in
ONE OBJECT TO RULE THEM ALL! OK, perhaps not "rule" them all, but certainly there is one object that makes it possible for near-total control of a web app. The Global Event Handlers Web API provides a globally-scoped object containing an assortment of event data from the document, Window or an HTML element. This can be user-interaction events, like clicking a button or moving to a different element, or programmatic changes, like a CSS animation that runs on page load. Notice of these events, as well as a large variety of important MORE q
By DarkMG73 on April 3rd, 2020 in
While Global Event Handlers are actually a Web API, accessing these events are central to Javascript's usefulness. These events mark points of interaction from the user or programmatic changes to the document. All of this can be harnessed via JavaScript to provide both functional and visual manipulations that create a MORE q
By DarkMG73 on April 3rd, 2020 in