How to use window object frames in JavaScript
In this article, i am going to explain about use of frames property in JavaScript.
Frames property in JavaScript window object
The frame property returns an array of all the frames in current window.
Syntax of frames property
Browser support
The frames property is supported in all major browser.
Example of frames property
<html>
<body>
<iframe src="http://microsoft.com"></iframe>
<iframe src="http://google.com"></iframe>
<script type="text/javascript">
for (var i = 0; i < frames.length; i++) {
frames[i].location = "http://c-sharpcorner.com/"
}
</script>
</body>
</html>
|
Output:
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