JavaScript setTimeout() Function | Make Loading page in HTML & JavaScript - JavaScript Tutorial 110

preview_player
Показать описание
Notes for You:: JavaScript setTimeout(functionName, delayTime) function.
- executes a function after a specified delay time.

Example Code 1:

<p id="firstp">Some Text </p>

<script type="text/javascript">

setTimeout(changeText,3000);

function changeText()
{
}

</script>

Example Code 2: Loader page with HTML, CSS and JavaScript.

<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JavaScript Timing Functions</title>

<style type="text/css">

#loader
{
width:50px;
height:50px;
background-color:white;
border:10px solid lightgray;
border-top:10px solid black;
border-radius:50%;
animation-name:rotateLoader;
animation-duration:1s;
animation-iteration-count:infinite;
position:absolute;
top:40%;
left:40%;
}

@keyframes rotateLoader
{
from { transform:rotate(0deg); }
to { transform:rotate(360deg); }
}

</style>
</head>
<body>

<div id="loader">
</div>

<script type="text/javascript">

setTimeout(loadNextPage,3000);

function loadNextPage()
{
}
</script>

</body>
</html>

Note:
- replace < with less-than symbol.
- replace > with greater-than symbol.

=========================================

Follow the link for next video:
JavaScript setInterval() Function | Make Timer in JavaScript - JavaScript Tutorial 111

Follow the link for previous video:
JavaScript Events with Return value - JavaScript Tutorial 109

=========================================

JavaScript Tutorials Playlist:-

=========================================
Watch My Other Useful Tutorials:-

jQuery Tutorials Playlist:-

jQuery UI Tutorials Playlist:-

Bootstrap Tutorials Playlist:-

=========================================

► Subscribe to our YouTube channel:

► Visit our Website:

=========================================
Hash Tags:-
#ChidresTechTutorials #JavaScript #JavaScriptTutorial
Рекомендации по теме
Комментарии
Автор

👍Every video on my channel is made with Love and Hard work, So don't forget to Like, Comment & Share.
👉Please do Subscribe, Hit the bell icon & Enjoy Learning. It's FREE.

ChidresTechTutorials
Автор

i appreciate your amazing way of explanation.

kafiabiomar
Автор

Just amazing. Pls make a video how we can create pie chart using html css and js.

kajalmondal
Автор

Your courses are the number One.
I have a question. for the MERN developer, what are the road map?
for MERN developer, Do I have to learn all Javascript concept or are there any specific concepts that only used in MERN ?
plase, can you help to explain this. Thanks beforehand

dulrwlx