Javascript Course

- The history object is part of the window object, and contains the URLs visited by the user (within a browser window).
It contains useful methods and properties that let you move back and forth through the user's history, and manipulate the contents of the history stack.
- Syntax:

window.history.property_name
window.history.methodName()

• The history object has two properties: length and state.
window.history.length - returns the number of URLs in the history list.
window.history.state - returns the object added in history with pushState() or replaceState().


Methods of the history object

Daily Test with Code Example

HTML
CSS
JavaScript
PHP-MySQL
Which type of <input> creates a color well control for selecting a color value?
type="text" type="color" type="date"
<input type="color" name="get_color" />
Which CSS method rotates the HTML element at a given degree?
scale() translate() rotate()
#some_id:hover {
  transform: rotate(60deg);
  -ms-transform: rotate(60deg);    /* IE 9 */
  -moz-transform: rotate(60deg);   /* Firefox */
}
Click on the function that returns the number with the highest value.
pow() min() max()
var maxn = Math.max(8, 4, 88, 56);
alert(maxn);      // 88
Which function prevent the same file from being included more than once in a page?
include() include_once() require()
include_once("some_file.php");
The history object

Last accessed pages

  1. PHP Switch Case (3325)
  2. The School for Gods (5824)
  3. Get Lower, Higher, and Closest Number (5338)
  4. Display image file in Canvas, Check its type and size before Upload (3448)
  5. Variables, Comments and trace() (1678)

Popular pages this month

  1. Courses Web: PHP-MySQL JavaScript Node.js Ajax HTML CSS (103)
  2. Read Excel file data in PHP - PhpExcelReader (35)
  3. PHP Unzipper - Extract Zip, Rar Archives (29)
  4. The Mastery of Love (23)
  5. SSEP - Site Search Engine PHP-Ajax (20)
Chat
Chat or leave a message for the other users
Full screenInchide