quiero hacer algo en mi sitio web y lo mas parecido lo he encontrado en esta pagina http://www.giga2face.com.es/ , lo que quiero hacer es que al dar click en compartir un en facebook al cerrar el popup redirecione a otra pagina de mi web , me he pillado el codigo que creo que hae eso pero no lo entiendo buuu estoy a punto de un ataque de nervios ayuda por favor
<script language="JavaScript" type="text/javascript">
var ty = 0;
function getsome(){
ty = ty +1;
}
var my_window = null;
function koko(url, name, w, h, scrolling, resizable)
{
// Fudge factors for window decoration space.
// In my tests these work well on all platforms & browsers.
w += 32;
h += 140;
wleft = (screen.width - w) / 2;
wtop = (screen.height - h) / 2;
// IE5 and other old browsers might allow a window that is
// partially offscreen or wider than the screen. Fix that.
// (Newer browsers fix this for us, but let's be thorough.)
if (wleft < 0) {
w = screen.width;
wleft = 0;
}
if (wtop < 0) {
h = screen.height;
wtop = 0;
}
my_window = window.open(url, name,
'width=' + w + ', height=' + h + ', ' +
'left=' + wleft + ', top=' + wtop + ', ' +
'location=no, menubar=no, ' +
'status=no, toolbar=no, scrollbars=' + scrolling + ', resizable=' + resizable);
// Just in case width and height are ignored
//my_window.resizeTo(w, h);
//my_window.resizeTo(120, 122);
// Just in case left and top are ignored
//my_window.moveTo(wleft, wtop);
my_window.focus();
timer();
}
function timer(){
if(ty == 1){
setTimeout( "check_func()" , 1000);
}
}
function check_func() {
if(false == my_window.closed){
timer()
}else{
window.location = 'http://descargagratis.com.es/redirige_jaa2.php';
}
}
</script>