Source code

Revision control

Copy as Markdown

Other Tools

<html>
<head>
<script>
function replaceBody() {
var accService = Cc["@mozilla.org/accessibilityService;1"].
getService(Ci.nsIAccessibilityService);
accService.getAccessibleFor(document);
var newBody = document.createElement("body");
newBody.setAttribute("contentEditable", "true");
newBody.textContent = "New Hello";
document.documentElement.replaceChild(newBody, document.body);
getComputedStyle(newBody, "").color;
}
</script>
</head>
<body onload="replaceBody();">
OLD hello
</body>
</html>