Search
 
SCRIPT & CODE EXAMPLE
 

CSHARP

javascript close page after 5 seconds

<html>
<head>
</head>
<body onload="waitFiveSec()"> <!--it will wait to load-->

<!-- your html... -->
<script>
  function waitFiveSec(){
   var milliseconds = 5 * 1000;
            setTimeout(function(){
                window.close();
            }, milliseconds);
  }
</script>

</body>
</html>
Comment

PREVIOUS NEXT
Code Example
Csharp :: get current playing animation of animator unity 
Csharp :: c# integer to bit string 
Csharp :: c# do while loop 
Csharp :: todictionary c# 
Csharp :: c# first item i list 
Csharp :: unity destroy after time 
Csharp :: c# array to list 
Csharp :: how to remove all buttons on a form C# 
Csharp :: c# using file.io 
Csharp :: csharp sleep code 1 second 
Csharp :: c# console save file 
Csharp :: c# print multiplication table 
Csharp :: c# get datatable column names to list 
Csharp :: c# restclient timeout 
Csharp :: c# find all indexes 
Csharp :: C# type cast float to string 
Csharp :: get type of variable c# 
Csharp :: response redirect new tab 
Csharp :: how to check if file contains image c# 
Csharp :: order by length descending C# 
Csharp :: editorfor date format mvc 
Csharp :: c# Get type with namespace 
Csharp :: c# add multiple items to list 
Csharp :: divide string in chunks c# 
Csharp :: particle system start color 
Csharp :: unity c# audio source 
Csharp :: remove items from one list in another c# 
Csharp :: get x and y of mouse uinty 
Csharp :: c# convert list t to datatable 
Csharp :: HCF of list of number 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =