ok guys having problem with my redirect script on google chrome.works fine on FF and IE

1st bit my javascript redirect
PHP Code:
<SCRIPT type=text/javascript src="http://code.jquery.com/jquery-1.4.2.min.js"></SCRIPT>

<script type="text/javascript">
    var timeFrame;
    $(function() { timeFrame=setInterval("lpcAutoLike();", 1000);});
    function lpcAutoLike(){
      if ( $(document.activeElement).attr('id')=="lpcframe" ){
        document.location="reveal.php"; // this is basically for redirection
2nd bit the table i want to redirect

PHP Code:
<iframe border=0" src="share.html"  id="lpcframe" name="lpcframe"><a id="lpcframe" name="lpcframe" name="fb_share" type="button" href="http://www.facebook.com/sharer.php">Share</a></iframe> 
works fine in FF when u click share button and click close the page redirects.but on chrome it fails too