tags:

views:

114

answers:

5

help me, i want to hide my address bar url in my asp.net website.

+1  A: 

you can hide the address bar using javascript not by Asp.net

window.document.statusbar.enable = false;
anishmarokey
A: 

You may try closing the current window and then opening a new:

var dimensions = 'toolbars=no,menubar=no,location=no,scrollbars=yes,resizable=yes,status=yes';
window.opener = self;
window.close();
window.open('http://example.com/foo.htm', '_blank', dimensions);
window.moveTo(0, 0);  
window.resizeTo(screen.width, screen.height - 100);

Not guaranteed to be cross browser. It appears to be working on IE.

Darin Dimitrov
A: 

anishmarokey's answer so kind.:)

Roy
@Roy: you should either write answer or provide help link.. i dont think that its good to only write about someone's answer.
Rajesh Rolen- DotNet Developer
put it as a comment.don't put it as a answer
anishmarokey
A: 

Nowadays most the browsers seem to override this behavior. For example Firefox see this.

ajay_whiz
+6  A: 

Try This

window.open('MyPage.aspx','Title','toolbar=no,status=no,resizable=1,scrollbars=1,menubar=no,location=no,width='+screen.width+',height=700'); 
Pankaj Mishra