<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<script>

function boom()
{
  var frameDoc = document.getElementById("f").contentDocument;
  frameDoc.adoptNode(document.createElement("select"));
}

</script>
</head>

<body onload="boom();">
<iframe id="f"></iframe>
</body>
</html>
