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

LATEST NEWS
Network

TLS / SSL / https


SSL ili Secure Sockets Layer predstavlja sigurnosni protokol komunikacije na internetu, a korisnici ga najčešće sreću u oblasti elektronske trgovine i elektronskog bankarsta. Nekada nije bio podržan od strane svih internet browsera i servera, ali danas jeste i predstavlja de facto sto se tice sigurnosti na internetu. Kako bi se u potpunosti iskoristili potencijali interneta kao medija komunikacije i poslovanja, bilo je neophodno uspostaviti stadarde koje web sajtovi moraju ispuniti, kako bi izgradili odnos poverenja sa korisnicima. Veliki broj kompanija koje posluju online, kao standard i okvir bezbednog poslovanja i bezbedne komunikacije na internetu, prihvatili su SSL sertifikate. Prvu specifikaciju SSL...

Read more
Created: 03/01/2019Comments:0Views: 7
CSS

Reflow i Repaint


Reflow refers to the process of recalculating the layout (triggering the layout process) when a part or the entire page changes. See the section titled "Browser: Layout," where this process is explained in detail. It is important for developers to understand how to reduce or minimize reflow time. Repaint is the process of re-rendering elements on the screen. Repaint can be triggered by a reflow process (when dimensions or positions of elements are recalculated) or by a style change (such as background-color, border-color, or visibility) without triggering a reflow. The repaint process involves executing the paint operation...

Read more
Created: 03/01/2019Comments:1Views: 6
Text

Character Encoding


In computer terminology, Character Encoding refers to a system in which each character is represented by a specific computer value, which varies depending on the encoding system. The term "encoding" in English means converting or transforming one value into another (e.g., a string into a binary value and vice versa). A character represents: Numbers Letters (uppercase or lowercase, from any language) Symbols: @ - _ ! ? # & / . , ...

Read more
Created: 03/01/2019Comments:1Views: 6
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: 11
Javascript

Scope


Variables and functions defined outside of a function have a global scope. The global scope in JavaScript is the widest possible scope. It exists across the entire web page, and all variables and functions created in the global scope can be used anywhere on the page. In addition to variables, functions can also have a global scope. These are functions defined in the code itself, not within another function. Global variables and functions exist throughout the entire page and remain relevant as long as the user does not navigate to another page. Besides the global scope, there is also the functional or...

Read more
Created: 02/28/2019Comments:2Views: 22
Javascript

Fuction expression


In JavaScript, a function is treated as a value, meaning it can be used in place of any other value. A function can also be declared by assigning it to a variable, thereby giving the function the name of the variable it is assigned to. In other words, the variable becomes the function. These types of functions are called anonymous functions. However, we can also assign a name to such functions, which is useful when creating self-invoking functions. For these functions, a semicolon is required at the end. This method is used when the function is needed only once or when...

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

Performance Observer API


The latest API for monitoring Web Performance. It is slightly more complicated to set up, but the advantage is that it uses the same syntax as other Observer APIs (Resize Observer, Intersection Observer, and Mutation Observer). The Performance Observer API allows you to set up something similar to an event, which monitors specific configured web performance metrics and triggers a callback function when those results become available in the browser's performance timeline. Within the callback function, you can access this data. The Performance Observer API is used to monitor, test, or measure performance metrics to improve your application....

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

Performance API


There are many APIs and techniques for measuring the performance of a web page (all the APIs listed below are interconnected, share similar syntax, and inherit properties from each other – most importantly, they are used in the same way): Performance API – Used to precisely measure the time required for specific performance evaluations. It contains other APIs, each of which measures a specific aspect of the web page's performance. All these APIs are used in the same way (explained in detail under the heading below: Performance APIs). Most...

Read more
Created: 02/28/2019Comments:0Views: 2