1 | function dynamicallyLoadScriptIn(url, document) { |
2 | var script = document.createElement("script"); |
3 | script.src = url; |
4 | document.head.appendChild(script); |
5 | } |
6 | |
7 | console.log("parent: " + parent); |
8 | console.log("parent location: " + parent.document.location); |
9 | |
10 | dynamicallyLoadScriptIn("https://code.jquery.com/jquery-1.10.2.js", parent.document); |
11 | dynamicallyLoadScriptIn("https://botcompany.de/1026221/raw", parent.document); |
12 | |
13 | console.log("loaded scripts"); |
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1026218 |
Snippet name: | Access parent of IFrame Spike |
Eternal ID of this version: | #1026218/4 |
Text MD5: | 78f1467bca365c53dbefbeb1775b8418 |
Author: | stefan |
Category: | html |
Type: | Document |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-12-05 17:43:35 |
Source code size: | 465 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 183 / 87 |
Version history: | 3 change(s) |
Referenced in: | [show references] |