Return to site

Scriptcase multiple iframes on one page

broken image
broken image
broken image
broken image

For example, one iframe could be a contents page and the pages in the contents load into the second iframe. In the example below the links in the first iframe open in the second iframe, so the pages can be viewed while remaining on this page. The HTML iframe name attribute is used to specify a reference for an element. The name attribute is also used as a reference to the elements in JavaScript. The iframe is basically used to show a webpage inside the current web page. Relative URL: It points to other files of the same web page.Įxample: This example illustrates the use of an iframe tag which is used to display a webpage inside the current web page.Absolute URL: It points to another webpage.There are two types of URL links which are listed below: The ‘ src ‘ attribute is used to specify the URL of the document that occupies the iframe.Īttributes value: It contains a single value URL that specifies the URL of the document that is embedded in the iframe.

broken image