Blog

python tutorials and learn python

Created with Sketch.

JavaScript DOM

JavaScript DOM This section covers the JavaScript Document Object Model (DOM) and shows you how to manipulate DOM elements effectively. Section 1. Getting started Understanding the Document Object Model in JavaScript Section 2. Selecting elements getElementById() – select an element by id. getElementsByName() – select elements by name. getElementsByTagName()  – select elements by a tag…
Read more

JavaScript History

JavaScript History Summary: in this tutorial, you will learn how to access the browser’s session history by using the JavaScript history object. Introduction to the JavaScript history object. When you launch the web browser and open a new webpage, the web browser creates a new entry in its history stack. If you navigate to another…
Read more

JavaScript Screen

JavaScript Screen Summary: in this tutorial, you will learn how to use the JavaScript Screen object to get the screen’s information of the current. Introduction to the JavaScript Screen object The Screen object provides the attributes of the screen on which the current window is being rendered. To access the Screen object, you use the…
Read more

JavaScript Navigator

JavaScript Navigator Summary: in this tutorial, you will learn about the JavaScript Navigator object and its properties. Introduction to the JavaScript Navigator object The JavaScript Navigator provides information about the web browser and its capabilities. You can reference the Navigator object via the read-only window.navigator property. The Navigator object has properties that convey the browser’s…
Read more

JavaScript Redirect

JavaScript Redirect Summary: in this tutorial, you will learn how to use JavaScript to redirect to a new URL or page. Introduction to the JavaScript redirect Sometimes, you want to redirect users from one page to another page that has a different URL. For example, you can create an app landing page that purely redirects…
Read more

How To Get Query String in JavaScript

How To Get Query String in JavaScript Summary: in this tutorial, you will learn how to use the URLSearchParams  to get query string parameters in JavaScript. To get a query string you can access the search property of the location object: location.search Code language: CSS (css) Assuming that the value of the location.search is: ‘?type=list&page=20’…
Read more

JavaScript Location

JavaScript Location Summary: in this tutorial, you will learn about the JavaScript Location object and how to manipulate the location effectively. The Location object represents the current location (URL) of a document. You can access the Location object by referencing the location property of the window or document object. Both window.location and document.location link to…
Read more

JavaScript setInterval

JavaScript setInterval Summary: in this tutorial, you will learn how to use the JavaScript setInterval() to repeatedly call a function with a fixed delay between each call. Introduction to JavaScript setInterval() The setInterval() is a method of the window object. The setInterval() repeatedly calls a function with a fixed delay between each call. The following…
Read more

JavaScript setTimeout

JavaScript setTimeout Summary: in this tutorial, you will learn how to use the JavaScript setTimeout() that sets a timer and executes a callback function after the timer expires. Introduction to JavaScript setTimeout() The setTimeout() is a method of the window object. The setTimeout()  sets a timer and executes a callback function after the timer expires.…
Read more

JavaScript prompt

JavaScript prompt Summary: in this tutorial, you will learn how to use the JavaScript prompt() method to display a dialog with a message prompting for user input. Introduction to JavaScript prompt() method The prompt() is a method of the window object. The prompt() method instructs the web browser to display a dialog with a text,…
Read more