var windowWidth = window.innerWidth - 25; variframe; iframe = document.createElement("iframe"); iframe.id = "test-iframe"; iframe.height = "10px"; iframe.width = windowWidth + "px"; iframe.style.visibility = "hidden"; iframe.src = this.url;
// Here is where the magic happens... add a listener to the
// frame's onload event - it will call handleEvent iframe.addEventListener("load", this, true);
// append to the end of the page
window.document.body.appendChild(iframe);
};
RemoteCanvas.prototype.handleEvent = function() {
// Look back up the iframe by id var ldrFrame = document.getElementById("test-iframe");
// Get a reference to the window object you need for the
// SpecialPowers.snapshotRect method var remoteWindow = ldrFrame.contentWindow;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.