X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Frameset onload Event

Frameset Object Reference Frameset Object

Definition and Usage

The onload event occurs immediately after a page is loaded.

Syntax

onload="JavaScriptCode"

Parameter Description
JavaScriptCode Required. Specifies a JavaScript to be executed when the event occurs


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The onload event is supported in all major browsers.


Example

Example

Alert "Page is loaded" immediately after a frameset is loaded:

<html>
<head>
<script>
function load()
{
alert("Page is loaded");
}
</script>
</head>

<frameset onload="load()" cols="50%,50%">
  <frame src="frame_a.htm">
  <frame src="frame_b.htm">
</frameset>

</html>

Try it yourself »


Frameset Object Reference Frameset Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook