function f(foo)
{
alert(foo);
}
document.getElementsByTagName("html")[0].onclick=f(1);

動かんw
無名関数だと楽勝なんだけど、なんか難しいのう