Access JavaScript-Functions , iFrames, and variables
Posted: Thu Oct 01, 2015 4:06 pm
Declare your WebGadget like this, and get the ID.
This one will output the complete HTML to the browser console
This one will call the function show(), which I declared in the head section of test.html (should work everywhere, as long as the window finished loading)
And this will alert the content of the variable 'declaration' of test.html
Works in Safari 9.0.1, FireFox , Chrome 45.0.2454.101 (64-bit)
Duplicate of http://forums.spiderbasic.com/viewtopic.php?f=6&t=417
Code: Select all
WebGadget (0, 10, 50, 960, 600, "test.html")
gadid = GadgetID(0)
Code: Select all
!console.log(v_gadid.gadget.contentDocument);
Code: Select all
!v_gadid.gadget.contentWindow.show();
Code: Select all
!alert(v_gadid.gadget.contentWindow.declaration);
Duplicate of http://forums.spiderbasic.com/viewtopic.php?f=6&t=417