How To Hide iframe Border Until Load Page

How To Hide iframe Border Until Load Page

When we use iframe in our website and during page load on the place of iframe showing like box, We can Hides iframe until during page load by using HTML and Javascript.

<iframe src="http://www.example.com"></iframe>

Now Use This Code

<iframe style="visibility:hidden;" onload="this.style.visibility = 'visible';" src="http://www.google.com" > </iframe>

2 Replies to “How To Hide iframe Border Until Load Page

Leave a Reply

Your email address will not be published. Required fields are marked *