msmith29063
06-17-2003, 07:56 AM
Is this the correct syntax?
// Determine domain used to access site
if (top.location.host.indexOf('.com')) {
var DefaultURL = 'http://www.sitename.com';
}
if (top.location.host.indexOf('.org')) {
var DefaultURL = 'http://www.sitename.org';
}
I need assign this variable based on how the site was accessed -- either .org or .com. Thank you for your help!
// Determine domain used to access site
if (top.location.host.indexOf('.com')) {
var DefaultURL = 'http://www.sitename.com';
}
if (top.location.host.indexOf('.org')) {
var DefaultURL = 'http://www.sitename.org';
}
I need assign this variable based on how the site was accessed -- either .org or .com. Thank you for your help!