• 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?
0
akobes05
Asked:
akobes05
2 Solutions
 
gjutrasCommented:
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.
0
 
craskinCommented:
Dim ie
Set ie=createobject("internetexplorer.application")
With ie
    .navigate "about:blank"
    Do Until .readyState=4
     WScript.Sleep 10
    Loop
    .toolbar=0
    .statusbar=0
    .Top=0
    .Left=0
    .Width=ie.document.parentwindow.screen.availWidth
    .Height=ie.document.parentwindow.screen.availHeight
    .navigate "http://myapplication"
    .visible=true
End With
0
 
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.
0

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