JavaScript Tutorials
Tutorials focused on JavaScript scripting language, and creating dynamic HTML pages.
- Some websites are blocking devtools with malicious JavaScript, so here is how to stop that without disabling JavaScript.
- We can not handle HTTP POST data from JavaScript, but we can still access the data while it is in the HTML form.
- getElementById should be used to select unique elements in a HTML document. Selected elements can be manipulated with JavaScript.
- Should you use querySelector or getElementById?; querySelector is more flexible, and able to perform more complex selections.
- the keydown event is not an ideal way to detect text-input by the user; instead you should consider using the input event.
- Easily check if an element is either hovered or in focus using plain JavaScript.
- The Width and Height of the browser Window can be obtained through the innerWidth and innerHeight properties; these can be checked by an event handler to detect resize events.
- Cool tutorial on how to change the iframe src attribute value using JavaScript.
- Learn how to use if statements in JavaScript to perform conditional execution of code.
- You can either use a pure JavaScript solution, or you can choose to go with a library such as JQuery. Either way, this short tutorial show how it is done. Enjoy!