Skip to content

Instantly share code, notes, and snippets.

@howie50417
Created December 29, 2016 08:33
Show Gist options
  • Save howie50417/de4755b3bb9f855b58e8977456990840 to your computer and use it in GitHub Desktop.
Save howie50417/de4755b3bb9f855b58e8977456990840 to your computer and use it in GitHub Desktop.
懸浮視窗
<HTML>
<HEAD>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</style>
<SCRIPT>
var i=0;
function test(){
i++;
var str="<iframe width=\"560\" height=\"315\" src=\"https://www.youtube.com/embed/Io1C7k5-U_I\" frameborder=\"0\" allowfullscreen></iframe>";
//document.all["myform"].insertAdjacentHTML("BeforeEnd",str);
document.getElementsByTagName("BODY")[0].insertAdjacentHTML("BeforeEnd",str);
}
</SCRIPT>
</HEAD>
<BODY>
<iframe width="560" height="315" src="https://www.youtube.com/embed/Io1C7k5-U_I" frameborder="0" allowfullscreen></iframe>
<form name=frm>
<input type=button value="Add Text Box" onclick="test();">
</form>
</BODY>
</HTML>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment