Fullscreen API Test3

Size
2,059 Kb
Views
26,312

How do I make an fullscreen api test3?

What is a fullscreen api test3? How do you make a fullscreen api test3? This script and codes were developed by Microsoft Edge Docs on 13 August 2022, Saturday.

Fullscreen API Test3 Previews

Fullscreen API Test3 - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>Fullscreen API Test3</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <!-- include all prefixed versions of the attribute -->
<div id="wrapper"> <div class="box"> <iframe id="frame1" allowfullscreen mozallowfullscreen webkitallowfullscreen src="https://codepen.io/MicrosoftEdgeDocumentation/full/GZJMjO/"></iframe> </div> <div class="box"> <iframe id="frame2" src="https://codepen.io/MicrosoftEdgeDocumentation/full/GZJMjO/"></iframe> </div> <button onclick="makeFullScreen('frame1');">Frame 1 full screen</button> <button onclick="makeFullScreen('frame2');">Frame 2 full screen</button>
</div> <script src="js/index.js"></script>
</body>
</html>

Fullscreen API Test3 - Script Codes CSS Codes

#wrapper { width: 670px; margin: 5px auto;
}
.box { float:left;
}
iframe { width:320px; height: 220px;
}
#frame1 { border: 5px solid darkBlue;
}
#frame2 { border: 5px solid gold; margin-left: 10px;
}
button { margin: 0 65px; padding: 10px 40px; background-color: grey; border: 1px solid black; border-radius: 5px;
}
button:hover { background-color: lightGrey;
}

Fullscreen API Test3 - Script Codes JS Codes

function makeFullScreen(frame) { divObj = document.getElementById(frame); if (divObj.requestFullscreen) { divObj.requestFullscreen(); } else if (divObj.msRequestFullscreen) { divObj.msRequestFullscreen(); } // Moz uses camel case caps on "screen" else if (divObj.mozRequestFullScreen) { divObj.mozRequestFullScreen(); } else if (divObj.webkitRequestFullscreen) { divObj.webkitRequestFullscreen(); }
}
Fullscreen API Test3 - Script Codes
Fullscreen API Test3 - Script Codes
Home Page Home
Developer Microsoft Edge Docs
Username MicrosoftEdgeDocumentation
Uploaded August 13, 2022
Rating 3
Size 2,059 Kb
Views 26,312
Do you need developer help for Fullscreen API Test3?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Microsoft Edge Docs (MicrosoftEdgeDocumentation) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!