![]() ![]() For example, if the page with the iframe is index.jsp, page1. This placeholder will only be displayed if the visitor hasn't consented, and will automatically be hidden if the users choses to update their consent settings to include cookies in the required category.Each page that should only be shown in the iframe (page1.jsp, page2.jsp, and page3.jsp) should include JS to detect whether or not it's being displayed in its own window. Next, we’ll use CSS to make the iframe responsive. Furthermore, it offers a second chance at being allowed to set cookies. That’s why very often we use the width and height attributes to set different size of an iframe. Regardless of whether the YouTube iframe is marked up manually or automatically, using a placeholder is a good way to preserve the layout of the page. To build a simple iframe, set the source URL and the width and height in pixels: Use a percentage rather than a stipulated size in pixels for a responsive website whose sizing should change with different screen sizes.However, the alternative domain still stores information on a visitor's device, by using the browser's HTML Locale Storage instead, which also requires consent.ĭisplay a placeholder when the required consent hasn't been given You can choose to display a placeholder before or after the iframe-tag to show a message to the visitor and inform them that the content is blocked due to their consent settings (visitor has not consented to the types of cookies used by the iframe). Please note that YouTube offers you to serve videos from the alternative domain which doesn't use HTTP cookies. The immediate child element is automatically sized. * Remember to replace the example- URL '' with the URL that points to the content you want to display. Wrap any embed, like an
0 Comments
Leave a Reply. |