How to get CRM Server Url from ISV.Config or OnLoad Event of Form


finding crm server url from ISV.Config

write a function as

getUrl= function() {
                               var url=document.location.host;
                                return url;

                             }