Search
 
SCRIPT & CODE EXAMPLE
 

JAVASCRIPT

the settimeout() method receives the second parameter in

/*
	The setTimeout() function takes two arguments. One for the function to call and one for
	the time delay in milliseconds.
*/
//Example for alerting a user after 1 hour.

function timeUp(){
	alert("You have crossed your screen time limit.");
  	location.reload();
}

setTimeout(timeUp, 3.6 * Math.pow(10, 6)); //1 hour = 3.6 * 10^6 milliseconds.
Comment

PREVIOUS NEXT
Code Example
Javascript :: useRef is not working with custom compnents 
Javascript :: how to make your own version of filter method 
Javascript :: nodejs how to beautify mysql arrays 
Javascript :: regex generator from text 
Javascript :: edit mongodb array if checkbox is checked 
Javascript :: public url react for serving django static in production 
Javascript :: add link in react table 
Javascript :: input should reject non-alphabetical input reacj js 
Javascript :: send data to javscript 
Javascript :: rechart graph 
Javascript :: regex placa de carro 
Javascript :: RTC measure react native undefined 
Javascript :: Return Instance Of Object 
Javascript :: Star Wars Celebration 
Javascript :: Check If Key Exists For Object 
Javascript :: nodejs express parse query params boolean 
Javascript :: toggle checkbox react boolean 
Javascript :: Backbone Model Set Can Set Muliple Values At Once 
Javascript :: ticket draw 
Javascript :: bun javascript runtime 
Javascript :: Get Error 
Javascript :: $() in javascript 
Javascript :: concurrently package usage 
Javascript :: Nested Components 
Javascript :: ajax fail function parameters 
Javascript :: double exclamation mark javascript 
Javascript :: phaser matter is undefined 
Javascript :: js organise string tab spaced 
Javascript :: react export multiple components from index 
Javascript :: pass a callback funcion into an async function node js 
ADD CONTENT
Topic
Content
Source link
Name
4+8 =