summaryrefslogtreecommitdiffstats
path: root/browser/base/content/test/plugins/plugin_add_dynamically.html
blob: 863d36e0937be61d5195be2ce8b387c9897ba1c6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<script>
function addPlugin(aId, aType="application/x-test") {
  var embed = document.createElement("embed");
  embed.setAttribute("id", aId);
  embed.style.width = "200px";
  embed.style.height = "200px";
  embed.setAttribute("type", aType);
  return document.body.appendChild(embed);
}
</script>
</body>
</html>