Category Archives: JavaScript

JavaScript outerHTML with Example

In this tutorial, I will tell you about outerHTML in javascript. outerHTML provides developers with a lot of power. By this property, you can get whole element value with its HTML Like this: It is a valid string comprising a combination of text and tags. There are other properties that can also be used to… Read More »

JavaScript Get URL Parameters

In this tutorial, I will tell you about how you can get URL parameters with javascript. Passing URL parameters is a nice way to move from one page to another. As we know URL is string in which there are certain variables present which are used to move forward to the new page. You can… Read More »

JavaScript Read and Write to Text File

In this tutorial, I will tell you about how you can read and write to text file using JavaScript. As we know JavaScript does not have the ability to access the user’s file system so for this we need to run the project on a server. To implement this we use node.js. In node.js these… Read More »

How to Disable Link in JavaScript?

In this tutorial, I will tell you how to disable link using javascript. As there are many ways to disable hyperlink like we can use event handler, getelmentbyid and set attribute method which is used to get and set value, attribute on any  HTML element. So, following are the ways to stop the link functionality.… Read More »

JavaScript Calculator Example

In this tutorial, I will tell you two ways to make a calculator using basic HTML, CSS and JavaScript. In first way we make functions for all operations and in the second we use some inbuilt global function to make a calculator. In both cases we are going to add some simple math operations like… Read More »

JavaScript Reverse String – 4 Ways

In this tutorial I will talk about how you can reverse a string in JavaScript language. This is a very popular question i.e. asked in interviews. There are many ways in which we can reverse a string. Here I will discuss different ways in which we can achieve this. JavaScript Reverse String Using Buitin Function… Read More »

JavaScript Tic Tac Toe Game

In this tutorial, I will tell you how to build a basic tic tac toe game using HTML, CSS and JavaScript. Most of the people know that when we were kids we used to play this game on paper. We played it many times till we win. Those who don’t know about this game let… Read More »