" Why do we need to iframe a specific area of a website? Next, we need to create our iframe. @kal-tahrawi. In short, to check if a page is in an iframe, you need to compare the object’s location with the window object’s parent location. They are great choices for landing pages, sign in/register pages etc. If an iframe meets any of these conditions, Chrome considers it hidden and won't lazy-load it in most cases. I would refer to this as a responsive iFrame. This section will give an introduction of targeting links in HTML Iframes that means opening a link of one iframe in another iframe … The script below attempts to fix that by Check if a Page Is in an iFrame. Using stylesheet you can set up the iframe fit to screen by defining width and height and more properties. In this example we’ll show you a login page template using a split screen Bootstrap 4 layout. Syntax