Public feed #891778

Mine

public text v1 · immutable
Raw Edit
·published 2008-02-04 22:05 UTC
rendered paste body
// Event listener
window.addEventListener("load", function(e) { pi.init(); }, false);


var pi = {
  init: function() {
    var appcontent = document.getElementById("appcontent"); // browser
    if (appcontent) {
      appcontent.addEventListener("DOMContentLoaded", this.onPageLoad, true);
    }
  },
  onPageLoad: function(e) {
    var doc = e.originalTarget;  // Doc that triggered onLoad
    var loc = doc.location;