sc*****@gmail.com said the following on 11/28/2005 1:58 AM:
Please quote what you are replying to.
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.
Thanks for that. But I want to clarify something, will
http://javascript:this.domain:8080/index.html" work.
It is easy enough to test but the answer is no.
You will have to build your own URL and then use JS to simply set the
document.location.href to the appropriate URL.
document.domain seems to be a property that can be set but not read.
Bummer.
Get the location.href property, then weed out the part you need. It will
be everything from the beginning up to the first '/' that is not part of
the '//'. Then, build your own URL string, set the location.href to that
string, then you are set.
Search the archives. You can probably find something already written
that will give you the current domain.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/