The target attribute of the link must refer to the name attribute of the iframe:. We just launched W3Schools videos. Get certified by completing a course today! If you want to report an error, or if you want to make a suggestion, do not hesitate to send us an e-mail:. Links Link Colors Link Bookmarks. Report Error. These attributes are deprecated and may no longer be supported by all user agents. You should not use them in new content, and try to remove them from existing content.
The value 1 the default draws a border around this frame. A URL of a long description of the frame's content. Due to widespread misuse, this is not helpful for non-visual browsers. From the inside of a frame, a script can get a reference to its parent window with window. Script access to a frame's content is subject to the same-origin policy. Scripts cannot access most properties in other window objects if the script was loaded from a different origin, including scripts inside a frame accessing the frame's parent.
Cross-origin communication can be achieved using Window. This implies that when a link with a target attribute with that name as value is clicked, the linked resource will open in that iframe.
Is this website helpful to you? Please give us a like , or share your feedback to help us improve. Connect with us on Facebook and Twitter for the latest updates. Example Try this code ». Previous Page Next Page.
0コメント