Hide Address bar from child window using javascript

 Hide the address bar from child window using javascript(Best Solution)


<script type="text/javascript> 
   function openWindow() {
            var curr_browser = navigator.appName;
            if (curr_browser == "Microsoft Internet Explorer") {
                window.opener = self;
            }
            window.open('http://www.google.co.in/', 'null', 'width=900,height=750,toolbar=no,scrollbars=no,location=no,resizable =no');
            window.moveTo(0, 0);
            window.resizeTo(screen.width, screen.height - 100);
        }

</script>
<a target="_parent" href="javascript:void(0);" onclick="openWindow();">Open new window</a> 

Please Click on Google +1 Button if you like this solution. 
Thanks 
 


Comments

  1. This comment has been removed by the author.

    ReplyDelete
  2. This comment has been removed by the author.

    ReplyDelete
  3. Hi Vijay. Can you tell me what code to use to auto-hide the address bar in Chrome? And then make it reappear when I hover my mouse over the area where its supposed to be? Thanks.

    ReplyDelete
  4. This comment has been removed by the author.

    ReplyDelete
  5. No Sir Its not working properly and please read above all comments and reply

    ReplyDelete
  6. nahi na ye working me nahi hai

    ReplyDelete

Post a Comment

Popular posts from this blog

Insert, Delete Rows, columns in HTML table Using Javascript

Lite PromiseJS(Light weight JavaScript promise library)

Open source Social Networking site in Asp.net and Microsoft Ajax