Linking to a webscreen page in Javascript 

Linking to a webscreen page in Javascript 

  
Is there another way you can add the following path, so that it would always load the correct path for both Production server and Development server?

Javascript example
On a development server you would add the following lines of code
----------
setTimeout('Redirect()',900000);
function Redirect()
{
  location.href = '.../eSpace1/WebScreen1.aspx';
}
---------
 
On a production server you would change the location.href path to "'../eSpace1/WebScreen1.aspx';"  (as shown below)
----------
setTimeout('Redirect()',900000);
function Redirect()
{
  location.href = '../eSpace1/WebScreen1.aspx';
}
---------
 
 
Hi Robert,

Can´t you just use a relative path:

location.href = '/eSpace1/WebScreen1.aspx';

?

Cheers,
Tiago Simões

@Tiago,thanks "relative path" works.