Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Find Server Name?

Status
Not open for further replies.

RossyD

Technical User
Apr 23, 2002
4
GB
Hi,

I have a drop down menu on a site which has a total of 22 links.

We currently use a site that is not advertised so that our customers can go in and look at how their site is developing before it is published with the url's they have specified.

The drop down menu is from opencube. ( It is the DHTML Quick Menu and all links within the menu are in a script. Whenever we want to publish a site we will have to edit this script to change all url's.

Is there a bit of Javascript I can include to find the first part of the url

eg. the /aboutus bit will stay the same but the bit will change. The script will have to find out what the first part of the address is automatically so all links can auto update.

I hope I have explained this prob OK if not a bit long winded.

Thanks
 
document.domain tells you what domain the page is, and will show what it looks like you're after. This does NOT work offline, so you'd have to do any testing through using the server rather than working locally.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top