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/1028422/raw?rand=" + Math.random(), parent.document); |
12 | |
13 | console.log("loaded scripts"); |
Began life as a copy of #1026227
Travelled to 7 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt, xrpafgyirdlv
No comments. add comment
Snippet ID: | #1028423 |
Snippet name: | BookBetter Load Chat Bot In Parent Of IFrame |
Eternal ID of this version: | #1028423/3 |
Text MD5: | f91acdb6b3b38acf347886598a61e283 |
Author: | stefan |
Category: | javascript |
Type: | Document |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-06-18 00:06:27 |
Source code size: | 487 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 198 / 1184 |
Version history: | 2 change(s) |
Referenced in: | [show references] |