Home » JavaScript (page 30)

JavaScript

Javascript Onmouseover Example

Over time, programmers started paying attention not only to the functionality of their app or website, but also security, manageability and a lot of other additions that are nowadays a requirement. The one who was the most widespread and improved specifically fast was User Experience. It was given so much attention that by now there are whole concepts, programming languages, ...

Read More »

jQuery Next Example

The aim of this example is to show you how to use the jQuery next() method. The jQuery next() method is used for getting the next element of any HTML element. This method takes the wanted elements type as an optional argument. For example, next('span') is used to get the immediate following ‘span’ element. By using this method, only the ...

Read More »

Javascript Date Validation Example

The aim of this article is to validate date input in javascript. When getting information from a user for insertion into a database, or use in other processing, it’s important to control what the user can enter. Otherwise you can end up with values in the database that have no relation to reality. Javascript does not provide any method to ...

Read More »

Learning Angular 2: Creating a tabs component

This is a follow-up article of thoughtram’s excellent article on developing a tabs component with Angular 2, where we’re going to explore an alternative way of creating a tab component by learning about @ContentChildren and AfterContentInit. That said, definitely read thoughtram’s article on how to develop a tabs component in Angular 2 first. Then come back and continue here . Ok, to recap, ...

Read More »

Javascript Regular Expressions Example

Regular expressions are patterns used to match character combinations in strings. They are used to perform pattern-matching and “search-and-replace” functions on text. In JavaScript, regular expressions are also objects. JavaScript’s regular expression flavor is part of the ECMA-262 standard for the language. This means your regular expressions should work exactly the same in all implementations of JavaScript. In the past ...

Read More »

Javascript Open New Tab Example

One of the most simple and basic actions you find in websites or apps is being able to open a URL into a new tab or window. In most cases this is not only dependent of your code but also the settings of the browser that is used. Let’s see how to proceed in order to make this action possible! ...

Read More »

Javascript Calendar Example

Calendars are a very useful widget or part of an application, as we can see from the frequency in which we use them ourselves (at least for the forgetful people like me!). In fact they can be so useful that there are currently apps dedicated solely to this function in our smartphones and other gadgets. How can we create one ...

Read More »