How to Rank Your Website in Google

There are plenty of Factor to rank your website if your website fits all those Factor so your website can also come to Google's 1'st page! - Your domain name must be unique and you...

Search Engine Optimization

You must know that Google is a very big search engine in the world where many people do not know how to search for something everyday if you want people to search and who...

Functions of JavaScript

JavaScript is used to create dynamic web pages. JavaScript creates highly interactive web pages. You can reduce the load of the server by performing a validation on the Client side via JavaScript. With javascript you...

Disadvantages of JavaScript

There are also disadvantages of JavaScript with Advantages, which are given below. Less Secure The JavaScript code executes on the client side so some viruses can occur in it. Because of this, JavaScript is...

Advantages of JavaScript

Below are some of the advantages of using JavaScript. Very Fast JavaScript is very fast because of being a client side. Because it does not include time waste in establishing connection to the server....

Features of JavaScript

There are 2 important features of JavaScript that are being given below. Dynamic JavaScript is capable of generating dynamic web pages. JavaScript is able to make changes to the Webpage itself when it...

Introduction to JavaScript

JavaScript is a client-side programming language that is used to add programming logic to web pages. You can understand this way. HTML is a designing language and it only designs web pages. You can...

Validate an email address using JavaScript or using expressions

Using regular expressions is probably the best way. function validateEmail(email) { var re = /^((.,;:s@"]+(..,;:s@"]+)*)|(".+"))@(({1,3}.{1,3}.{1,3}.{1,3}])|((+.)+{2,}))$/; return re.test(String(email).toLowerCase()); } Here's the example of regular expresion that accepts unicode: var re = /^((.,;:s@"]+(..,;:s@"]+)*)|(".+"))@((.,;:s@"]+.)+.,;:s@"]{2,})$/i; But keep...

How To redirect a page to Google after n milliseconds

The following solution using raw JavaScript works in all browsers and have been standard for a long time so you don't need any libraries for cross browser support. You can also use meta data to...

Basic Structure of a URL – How assign() and replace() differs

JavaScript provides you many methods to retrieve and change the current URL which is displayed in browser's address bar. All these methods uses the Location object, which is a property of the Window object....

Redirect To Previous Page Using PHP

Using the PHP Header Function: header ("Location: index.php"); Redirect To Previous Page For dynamic url: You need session_start() at the very beginning of any page that will use session variables. // SET REFERRER session_start(); function strleft($s1, $s2) {...

How to redirect to the previous page

There are Three methods of redirection is going to the previous page to simulate a back button click programmatically, here are some of the common way to go to the previous page using JavaScript's...

How to redirect web page using jQuery and Javascript

We may need to redirect your page from one page to another. Try to configure them on the server as much as possible. But there are many common scenarios where you need to use...

How to redirect web page using jQuery

With the jQuery API, you can also redirect web pages to another URL in one line of code. While this is not an right way to use jQuery, it makes sense to take advantage...

Redirect a Web Page Using Javascript

In this tutorial, we will be able to show you how to use JavaScript for different scenarios. Before we move on to our examples though, let's briefly mention the importance of using these adverts...

Redirect a Web Page Using Meta Tag

To add meta tags in a web page, you need to edit the <head> section of the HTML file. There are two methods you can use to edit HTML files you can use <meta...

How to Redirect a Web Page

The following is an example of redirecting current page to another website after 3 seconds. Redirecting a URL in JavaScript is nothing but sending the user from a URL to another URL. In Javascript,...

Force download image using PHP

<a href="download.php?file=path/<?=$row?>">Download</a> download.php: <?php $file = $_GET; download_file($file); function download_file( $fullPath ){ // Must be fresh start if( headers_sent() ) die('Headers Sent'); // Required for some browsers if(ini_get('zlib.output_compression')) ini_set('zlib.output_compression',...

Live Word and Character Counter using jQuery

I know there are a few textarea word counter jQuery plugins out there already, but I felt like building my own since I wasn’t a fan of the ones that are available. Nothing new...

Live Character Count Meter with Jquery

In this post I want to explain how to do live character or word count meter using Jquery. It is interesting and simple just ten lines of java script code. Use it and enrich...