IFrame - anyone tell me how allowfullscreen works

<head>

<title>Testing_5.1</title>



</head>

<body>

    <iframe src="ifram2.html" width="500" height="500" frameborder="1" allowfullscreen></iframe>

</body>

Use below code for iframe full screen.

iframe
{
display: block;
width: 100%;
border: none;
overflow-y: auto;
overflow-x: hidden;
}

1 Like