Related HTML5 tutorials:
HTML5 page structure without div
Detect iPad device orientation using HTML5
Dynamically create HTML5 Canvas Element:
var canv = document.createElement(“canvas”);
Problem: Need to add back button in HTML which should take the user back in browser history.
Let us discuss how to use in code.
The History object contains an array of previously visited URLs by the visitor. history.back() takes user to back in the history.
<input type=”button” value=”Go Back” onclick=”history.back(-1)” />
Above code displays simple button in browser which onClick takes user back to the history. history.back(-1) takes the user to previous page, “-1″ points …
We might have wanted to get URL of the current page in jQuery or to manipulate parts of the current page URL in jQuery. In this article we will discuss how to get URL of current page in jquery and also how to get parts of the url in jquery.
used: jQuery, HTML
In this article we will access the url of the current page using location object, location.href property holds the current page URL.
Window Location Object:
Each page path or the URL is referenced in window.location.href property, The location Objects …
Percentages are used to express how large/small one quantity is, relative to another quantity. Percentage Calculator is a simple online tool to calculate percentage,
let us see what is percentage.
What is percentage?
A rate, number, or amount in each hundred.
An amount, such as an allowance or commission, that is a proportion of a larger sum of money.
In mathematics, a percentage is a way of expressing a number, especially a ratio, as a fraction of 100. “Percent” comes from the latin Per Centum. The latin word Centum means 100.
It is often denoted using …
S/W: HTML + JS
Below is a simple code snippet to print a html …