document.createElement() Problem

Code (text):

 

  var s = document.createElement(‘iframe’);

  s.src= ‘http://google.com’

  s.style.position = ‘absolute’;

  s.style.margin = ’0′;

  s.style.padding = ’5px’;

  s.style.border = ’1px solid red’;

 

Here is a snippet of my JavaScript code, it works just fine creating the iFrame with the red border, etc. But it will not display Google inside of it, any one see what I'm missing here?

See original post by Pudge1

Leave a Reply