Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

13
LINES

< > BotCompany Repo | #1026228 // IPTV Load Chat Bot In Parent Of IFrame (not working)

Document

function dynamicallyLoadScriptInTopWindow(url) {
  var script = document.createElement("script");
  script.src = url;
  window.top.document.head.appendChild(script);
}

console.log("loading jquery");
dynamicallyLoadScriptInTopWindow("https://code.jquery.com/jquery-1.10.2.js");

var scriptURL = "https://botcompany.de/1026221/raw";
console.log("trying to load: " + scriptURL);  
dynamicallyLoadScriptInTopWindow(scriptURL);
console.log("added top-level script");

Author comment

Began life as a copy of #1026227

download  show line numbers   

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: 202 / 77
Referenced in: