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
Gaurav Shukla  Cloudsteer TechGaurav Shukla Cloudsteer Tech 

Get a Domain

function getDomain()
{
document.getElementById('company').value=document.domain;
}

 

 

This is For Checking Domain ........

 

Gaurav Shukla  

 

CloudSteer Technology Pvt Ltd.

cloudcodercloudcoder

I am not sure exactly what you are trying to do here, but check out the System.URL class in Summer 11 for accessing the instance url of your org:

 

http://blog.sforce.com/sforce/2011/05/one-of-the-trends-i-have-noticed-in-the-past-few-releases-is-an-even-greater-emphasis-on-openness-on-the-forcecom-platform.html