Skip to content

Instantly share code, notes, and snippets.

@elbart
Created August 12, 2010 22:10
Show Gist options
  • Save elbart/521860 to your computer and use it in GitHub Desktop.
Save elbart/521860 to your computer and use it in GitHub Desktop.
var iframeSrc = 'http://mydomain.com?query=string';
var iframe = '<iframe id="myId"></iframe>';
$('body').append(iframe);
$('#myId').attr('src', iframeSrc);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment