Declare your WebGadget like this, and get the ID.
Code: Select all
WebGadget (0, 10, 50, 960, 600, "test.html")
gadid = GadgetID(0)
This one will output the complete HTML to the browser console
Code: Select all
!console.log(v_gadid.gadget.contentDocument);
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)
Code: Select all
!v_gadid.gadget.contentWindow.show();
And this will alert the content of the variable 'declaration' of test.html
Code: Select all
!alert(v_gadid.gadget.contentWindow.declaration);
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