forked from mirrors/gecko-dev
Differential Revision: https://phabricator.services.mozilla.com/D62026 --HG-- extra : moz-landing-system : lando
30 lines
1.1 KiB
HTML
30 lines
1.1 KiB
HTML
<html>
|
|
<head>
|
|
<title></title>
|
|
</head>
|
|
<script type="text/javascript">
|
|
function remove() {
|
|
let iframe = document.getElementById("iframe1");
|
|
let myDiv = document.getElementById("myDiv");
|
|
myDiv.removeChild(iframe);
|
|
}
|
|
function addBack() {
|
|
let iframe = '<iframe src="formPage.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="600" allowtransparency="true" frameborder="0" height="600" scrolling="no" width="120" id="iframe1"></iframe>';
|
|
let myDiv2 = document.getElementById("myDiv2");
|
|
// eslint-disable-next-line no-unsanitized/property
|
|
myDiv2.innerHTML = iframe;
|
|
}
|
|
</script>
|
|
<body>
|
|
|
|
<div id='myDiv'>
|
|
<iframe src="formPage.html" marginheight="0" marginwidth="0" topmargin="0" leftmargin="0" allowtransparency="true"
|
|
frameborder="1" height="900" scrolling="no" width="500" id="iframe1"></iframe>
|
|
|
|
</div>
|
|
<div id='myDiv2'>
|
|
|
|
</div>
|
|
<input type='button' id='addBackFrame' value='Add back frame' onclick='addBack();' />
|
|
</body>
|
|
</html>
|