How To Perform Any Action After Loading Webpage’s all element?

Date Published: 30/08/2020 Published By: JaiSchool

Use window.onload = function{//code} event for this.

<html>
<body>

	<iframe width="853" height="480" src="https://www.youtube.com/embed/HexFqifusOk" frameborder="0" allow="accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

<script>
window.onload = function()
{
	alert("Webpage Loaded Completely");
}
</script>
<body>
</html>

Publish A Comment

Leave a Reply

Your email address will not be published. Required fields are marked *