-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e66e306
commit 5d47b3a
Showing
1 changed file
with
19 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,33 @@ | ||
|
||
|
||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Movie</title> | ||
<title>Iframe Element Hiding Example</title> | ||
<style> | ||
html, body { | ||
margin: 0; | ||
padding: 0; | ||
height: 100%; | ||
overflow: hidden; | ||
} | ||
iframe { | ||
position: absolute; | ||
top: 0; | ||
left: 0; | ||
/* Add CSS to hide the specific element within the iframe */ | ||
#myIframe { | ||
width: 100%; | ||
height: 100%; | ||
height: 100vh; | ||
border: none; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<iframe src="https://coppola.qodeinteractive.com/" title="Full Screen iFrame"></iframe> | ||
|
||
<iframe id="myIframe" src="https://coppola.qodeinteractive.com/"></iframe> | ||
|
||
<script> | ||
document.getElementById('myIframe').onload = function() { | ||
var iframeDocument = this.contentDocument || this.contentWindow.document; | ||
var elementToHide = iframeDocument.querySelector('your-css-selector-here'); | ||
if (elementToHide) { | ||
elementToHide.style.display = 'none'; | ||
} | ||
}; | ||
</script> | ||
|
||
</body> | ||
</html> |