Skip to content

Instantly share code, notes, and snippets.

@SunboX
Created September 5, 2012 20:57
Show Gist options
  • Select an option

  • Save SunboX/3644626 to your computer and use it in GitHub Desktop.

Select an option

Save SunboX/3644626 to your computer and use it in GitHub Desktop.
PhoneGap/Cordova Test Case
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<script>
var src = '<!DOCTYPE HTML><html><head><meta charset="utf-8">';
src += '</head><body>';
src += '</body></html>';
var frame = document.createElement('iframe');
frame.src = 'data:text/html,' + src;
document.body.appendChild(frame);
</script>
</head>
<body>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment