Monday, March 12, 2012

want to hide URL address bar in my asp.net application

I have asp.net application and it has datagrid and datagrid contains link , and the link will open new webpage by clicking on it, I want to hide my url address bar , how can I do this please some one tell me. Or give me some suggestions about this.

thank you

maxmax

It depends which browser the client is using but some of the newer browsers will not allow you to do this. Either way you will need to use the window.open javascript method e.g.

<a onclick="window.open('http://www.google.com','mywindow','status=1');" href="#">Click Me</a>

If it is an IE browser, then you can use javascript to hide the address bar


Eventhough you can hide the address bar by using javascript like all the above posts mentioned. however there are lots of way to get it, One way is to right click on the window and and check the Address(Url) label.

HC

0 comments:

Post a Comment