The code below will add an iframe dynamically, is there a way to insert javascript to this iframe dynamically?
Thx
var iFrame = document.createElement('iframe');
var iFrameSRC = "http://www.google.com";
iFrame.name = 'hehe';
iFrame.id = 'hehe';
iFrame.src = iFrameSRC;
iFrame.width = '1px';
iFrame.height = '1px';
iFrame.frameBorder = 0;
iFrame.style.overflow = "hidden";
iFrame.style.align = "left";
iFrame.style.display = "block";
iFrame.style.fontSize = "10px";
bodyInner.appendChild(iFrame);