![]() Comparing the object’s location with the window object’s parent location: Here, we simply compare the object’s location with the window object’s parent. Two sample commands: var iframe document.querySelector ('iframe id'TheID'') An element within the iframe is retrieved via the use of contentWindow. There may be a variety of reasons for checking whether a webpage is loaded in an iFrame, for example, in cases where we need to dynamically adjust the height or width of an element. The relevant
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |