• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1946
  • Last Modified:

Lock browser url / address bar

Is there a way to lock the url so that a user cannot navigate out of the web application until they logout?
2 Solutions
it's dependent of javscript.  On firefox they can disable altering of address bar, so it's possible to block these attempts.  But for most, you can do an window.open() to do a popup to your site and as part of that open you can make all the controls go away for this new window.  They can still close the window, but you give them a pretty tight view that way.
search for onclick="window.open( and you'll be able to get the syntax for all the parameters you want to turn off.
Dim ie
Set ie=createobject("internetexplorer.application")
With ie
    .navigate "about:blank"
    Do Until .readyState=4
     WScript.Sleep 10
    .navigate "http://myapplication"
End With
akobes05Author Commented:
Only problem I have is that I am using the login control so it automatically displays the web page.  I just though there might be a way to reference the browser from the ASPX's page load event or ssomething.

Featured Post

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now