Javascript
for
beginners

> Want to learn JavaScript but don't have the right resources?
Want to share your knowledge in your language!
You're in the right place.

Read. Create. Comment.

WRITE

ARTICLES BY: bbosko
Javascript

Events: bubbling i capturing


When an event occurs on a page, the interpreter does not execute it immediately on the element where it happened (the target element). Instead, it travels to the root element through the DOM model, triggering all identical events along the way. This process is how browsers handle events. This journey is called event propagation. Event propagation consists of two phases: Capturing phase – The interpreter starts traveling from the root element to the element where the event occurred. Bubbling phase – The interpreter...

Read more
Created: 02/28/2019Comments:1Views: 14
Javascript

JavaScript Form Validacija


JavaScript Form Validation When performing JavaScript validation, you first need to disable the default constraint validation performed by the browser by adding the boolean attribute novalidate to the <form> element. This prevents the browser from automatically validating the form when the submit button is clicked, disables the display of special styles for valid and invalid forms, and ignores validation-related attributes in form elements. // You can also dynamically add this attribute using JavaScript and the noValidate property: document.getElementById("myForm").noValidate = true; In addition to novalidate, you can use the formnovalidate attribute in a button or input element...

Read more
Created: 02/28/2019Comments:0Views: 6
API

WEB STORAGE


The essence of the web, whether it is a website or an application, has long been that data is prepared and executed on servers and then displayed to users in web browsers. With the advent of HTML5, it became possible to run complete and functional applications on the client side. Before this, cookies were used for such purposes. One of the most important features of any application, to work properly, is the ability to store data so it can be used whenever needed. For storing small amounts of data on the client side, cookies were used for a long time....

Read more
Created: 02/28/2019Comments:1Views: 10