How to use HTML DOM FrameSet onload in JavaScript

In this article i will go to explain about onload event in HTML DOM frameset.
  • 3971

HTML DOM frameset onload event

The HTMl  DOM unload event occur immediately after a page is loaded.

Syntax of onload event

onload="Code of JavaScript"


Browser support

The onload event is supported in all major browser.

Example of onload event

<!DOCTYPE html>

<html>

<head>

<script type="text/javascript">

    function load() {

        alert("Page is loaded");

    }

</script>

</head>

<frameset onload="load()" cols="50%,50%">

  <frame src="//MCNSERVER2\UserProfiles\aksingh\Desktop\frame1.html" />

  <frame src="//MCNSERVER2\UserProfiles\aksingh\Desktop\frame.html" />

</frameset>

</html>

Output:

onload new method.jpg

You may also want to read these related articles :here

Ask Your Question 

Got a programming related question? You may want to post your question here

Programming Answers here

Categories

More Articles

© 2019 DotNetHeaven. All rights reserved.