You need to sign in to do that
Don't have an account?
mohanpsfdc1.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!!
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!!
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
@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.