Skip to content

Instantly share code, notes, and snippets.

@RyanNutt
Created October 22, 2019 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save RyanNutt/47156fd08ca5f55ec7bb9324fe637609 to your computer and use it in GitHub Desktop.
Save RyanNutt/47156fd08ca5f55ec7bb9324fe637609 to your computer and use it in GitHub Desktop.
Needed a way to reference a form on the window that opened a JavaScript pop-up. This seems to work, although there's probably a better way.
<script type="text/javascript">
$(window.opener.document).find('[name="assignment-name"]').val('Hello, is this thing on?');
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment