[thelist] Question re: domain name ownership
apathetic
apatheticgenius at gmail.com
Sat Oct 9 07:12:39 CDT 2004
On Fri, 08 Oct 2004 22:55:12 -0400, Scott Wolpow <scott at publiccto.com> wrote:
> On another note:
> I need a script that will read the domain name and display it on the page.
> This is for "Domain for sale" Page.
<script type="text/javascript">
var theDomain = window.location.hostname;
if( theDomain.indexOf( 'www.' ) == 0 ) {
theDomain = theDomain.substring( 4 );
}
document.write( 'The domain ' + theDomain + ' is for sale!' );
</script>
--
www.apatheticgenius.com
www.hyperlinkage.com - Free online RSS reader
More information about the thelist
mailing list