Hi,
I have the following javascript but I am having issues within using setTimeout, ie:
function setUrl()
{
// Get system URL details
var url_path = new String(window.location.pathname);
var new_url;
new_url = window.location.host;
}
setTimeout("setValue('ONE_UP_URL',new_url);",2000);
}
But for some reason, I am getting the error: 'new_url' is undefined.
Would really appreciate your help on calling this javascript function using setTimeout.
Thanks.