1 | function dynamicallyLoadScriptInTopWindow(url) { |
2 | var script = document.createElement("script"); |
3 | script.src = url; |
4 | window.top.document.head.appendChild(script); |
5 | } |
6 | |
7 | console.log("loading jquery"); |
8 | dynamicallyLoadScriptInTopWindow("https://code.jquery.com/jquery-1.10.2.js"); |
9 | |
10 | var scriptURL = "https://botcompany.de/1026221/raw"; |
11 | console.log("trying to load: " + scriptURL); |
12 | dynamicallyLoadScriptInTopWindow(scriptURL); |
13 | console.log("added top-level script"); |
Began life as a copy of #1026227
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1026228 |
Snippet name: | IPTV Load Chat Bot In Parent Of IFrame (not working) |
Eternal ID of this version: | #1026228/1 |
Text MD5: | fa419f10e929c69c63579336abede5bc |
Author: | stefan |
Category: | javascript |
Type: | Document |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-12-05 17:43:55 |
Source code size: | 474 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 203 / 78 |
Referenced in: | [show references] |