Languages
[Edit]
EN

HTML - invisible iframe

0 points
Created by:
Wiktor-Sribiew
350

In this article, we would like to show you how to create an invisible iframe in HTML​​​​​​.

Quick solution:

<iframe src="url"
	  style="display:none;"
	  title="example-title"></iframe>

 

Practical example

In this example, we create an invisible iframe using display:none; CSS property inside iframe's style attribute.

// ONLINE-RUNNER:browser;

<!doctype html>
<html>
<body>
  <iframe src="https://dirask.com/findings"
		  style="height:250px; width:100%; display:none;"
		  title="Dirask Findings"></iframe>
</body>
</html>

Note:

Remove display: none; from the above example to see our  Findings & News page.

Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join