Back to the homepage
Previous page
Next page
Created 2014-02-22 by Yann Guidon
Version 2014-02-22

ygwm/application.js

This file is where some parts of the website are customised. This handles the window's title and some safety hooks are setup. Since the error message may need to be localised, lang.js and i8n.js need to be included before.

mainTitlePrefix="yasep.org: ";
mainTitle="";

function changeMainWinTitle(m) {
  document.title=mainTitlePrefix+
     (mainTitle=m); // save for later, if we change the prefix
}

window.onerror=function(msg, url, l){
  alert(I8N("Ierr1")+msg
       +I8N("Ierr2")+l
       +I8N("Ierr3"));
  return false
}
mainTitlePrefix="ygwm.org: ";
changeMainWinTitle("Hello !");

getById("R").onclick=function(){
  var i=bogusvariablename;
}
""