function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
mohanpsfdc1.3970202129084746E12mohanpsfdc1.3970202129084746E12 

Need Help to put as read only address bar(URL)for the visual force page

Hi,
I need one help, i have written one vf page for user popup notification whenever user login into salesforce.thenafter  i put as default landing page(This VF page) for users.now i want to make address bar as readonly(Because users can modifi URL and login into the system with out clicking agree button). Please help me if anybody is having idea on this. Thanks for your consideration!!
ManojjenaManojjena
Hi Mohan ,

Write a javascript on load of the page and add below script to make th eurl read only .

document.getElementById(document.URL).readOnly = true;

Thanks 
Manoj
SF_GuhaSF_Guha
Hi,

@Manoj: The above is not working as expected. Is there anything we are missing in it. 

@Mohan: As far as I know there is no way we can control browser address bar from VF or Javascript. If the script mentioned by Manoj worked out then its a great finding. But I doubt if it will control a browser's address bar. You can give a try. For me it didn't work out. 

Let me know if you come accross anything interesting.