Guest User

Untitled

a guest
Jun 19th, 2018
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. var Document = function() {};
  2. Document.prototype = parser.prototype;
  3. //or
  4. Document.prototype = parser;
  5.  
  6. Document.prototype.__defineGetter__('body') = function() {
  7. return this.getElementsByTagName('body')[0];
  8. }
  9.  
  10. var document = new Document();
  11. document.body; //Reference to the BODY element
Add Comment
Please, Sign In to add comment