function dynamicallyLoadScriptIn(url, document) { var script = document.createElement("script"); script.src = url; document.head.appendChild(script); } console.log("parent: " + parent); console.log("parent location: " + parent.document.location); dynamicallyLoadScriptIn("https://code.jquery.com/jquery-1.10.2.js", parent.document); dynamicallyLoadScriptIn("https://botcompany.de/1026221/raw", parent.document); 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: | 199 / 92 |
Version history: | 3 change(s) |
Referenced in: | #1026227 - IPTV Load Chat Bot In Parent Of IFrame |