Created
October 22, 2019 13:32
-
-
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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