// Remove the space between window. location! (Can't be posted without the space on this forum)
window. location.href = '<?php Mage::getUrl('*/'); ?>';
Set your block to extend Mage_Core_Controller_Varien_Action, then use the following to redirect a user.
One of those should work. Can’t guarantee it though, but at least that should point you in the right direction ^_^