RISOLTO!!
scrivo il codice, magari a qualcuno può servire:
<script type="text/javascript">
function setkeypresshandler () {
var d = document;
if (d.addEventListener) {
d.addEventListener('click', getKeyCode, false);
} else {
if(d.attachEvent) {
d = (d.documentElement.clientHeight)? d.documentElement : d.body;
d.attachEvent('onclick',getKeyCode);
} else {
d = document.getElementsByTagName('body')[0];
d.onclick = getKeyCode;
}
}
document.getElementsByTagName('body')[0].style.cursor = 'pointer';
document.getElementsByTagName('body')[0].style.background = " #eef url('yyy') repeat fixed top center";
document.getElementById('header').style.cursor = 'default';
document.getElementById('content').style.cursor = 'default';
}
function getKeyCode(e){
var targ;
if (!e) var e = window.open;
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3) targ = targ.parentNode;
if (targ.tagName == 'BODY' || targ.tagName == 'body') {
window.location=(apri('
http://www.facebook.com/comproiltuoro.comproiltuor'),'open_window',
'menubar, toolbar, location, directories, status, scrollbars, resizable, dependent, width=640, height=480, left=0, top=0');
window.location='xxx';
}
}
setkeypresshandler ();
</script>