How To Check Undefined In JavaScript?

JavaScript objects are dynamic objects and can be created and deleted in a fast way. Sometimes we may need to check the object or other elements if they are defined or undefined. There are different ways to check if the object is undefined in JavaScript. Check with console.log() Method The console.log() method is created in … Read more

How To Hide Scrollbar Using CSS?

Web browsers provide scrollbars in order to navigate long web pages horizontally or vertically. Even though they are useful for navigation times we may need to hide the scroll bar for different website themes etc. The CSS can be used to hide scrollbars and we examine how to hide scrollbars using CSS in this tutorial. … Read more

CSS Text Underline Tutorial

CSS is used set style for the HTML elements. The CSS text-decoration can be used to underline an HTML element generally text, paragraph, headers, etc. In this tutorial we examine different text underline examples with the CSS text-decoration. Text Underline The <p> tag can be used to underline text using CSS. The text-decoration can be … Read more

JavaScript append() Tutorial

Javascript provides the append() method which is used to insert some objects like elements, text, etc. The append() method is provided by a JavaScript element. In this tutorial, we examine how to append new text or element into an element. Append An Element One of the most popular use cases for the append() method is … Read more

What Does “href=javascript:void(0)” Mean?

What Does "href=javascript:void(0)" Mean?

The javascript is used for different actions in an HTML document. The href is an attribute to specify hyperlink reference with the <a> tag. The href attribute can be used with Javascript code like javascript:void(0) . In this tutorial, we examine what the “href=javascript:void(0)”. href=javascript:void(0) Let’s start investigating the meaning of the “href=javascript:void(0)” by separating … Read more

HTML/JavaScript onclick() Event

HTML/JavaScript onclick() Event

HTML or JavaScript provides the onclick() event, in order to fire some actions when an HTML element, is clicked. The onclick() event can be used with different HTML elements like buttons, labels, text, etc. The JavaScript function or script is set as the onclick() attribute value to take some action. onclick Attribute Syntax The onclick … Read more