- You can make the location bar read-only only if you use window.open.
- In the case of IE, we can change the browser setting for this. But this may not be a good idea.
so to simply turn off the location bar using window.open, the code looks like this:
subwin = window.open(url,"dummyname",'width=635px,resizable=no, height=535px, menubar=no, toolbar=no, location=no, scrollbars=no');
In the above example, location = no disables the location bar. You can change the size, scroll bar, menu, etc. Of your choice.
Thanks.
Milan source share