I have a google form iframe. I want to hide the iframe when users click on submit button. So the main content behind it can reveal. Thanks.
<h1>this is hidden content</h1>
<p>What is Lorem Ipsum?
Lorem Ipsum is simply dummy</p>
<div class="login">
<iframe name="target-iframe" src="https://docs.google.com/forms/d/e/1FAIpQLSc6XXOdWSJoHbfdUMRyOsVhap5r7-nR5nhdyWgZyOavYFz9bw/viewform?embedded=true" width="100%" height="100%" frameborder="0" marginheight="0" marginwidth="0">Loading…</iframe>
</div>
/* Add display:none to login class to hide the form */
.login {
position: absolute;
top: 0px;
left: 0px;
right: 0px;
bottom: 0px;
background-color: white;
}
iframe {
display: block;
max-width: 100%;
margin: auto;
height: 100vh;
z-index: 2;
}