Click here to Skip to main content
15,921,530 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
how to disable address bar vsnet2003
Posted

Use Javascript to Disable Address bar as shown
JavaScript
<script type="text/jscript" language="javascript">
    function fullScreen(theURL)
     {
         var newWindow;
         newWindow = window.open(theURL, '_blank', 'toolbars=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=yes');
        newWindow.moveTo(0,0)
        newWindow.resizeTo(screen.width, screen.height);
        //Disabling the print screen event
        setInterval("window.clipboardData.setData('text','')", 20);
        return false;
    }


Here Location is the "Address bar" you can make it as true or false
Call the Javascript fuction onload
as shown

<body önload="fullScreen(index.htm);"></body>
 
Share this answer
 
v2
Comments
VenuKalyan 25-Nov-11 0:31am    
thanq..
what you want to consider : please elaborate do you want to disable browser address bar or using code to disable it ..
 
Share this answer
 
Comments
VenuKalyan 25-Nov-11 0:31am    
code for disable it...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900