H
Howard Kaikow
I'd like to be able to include something like the following for many links
in my HTML documents:
<p><b><a
href=""ChooseURL("http://www.standards.com/index.html?Sorting","file://Sorti
ng/SortPerformanceComparison-Description.html")"">Bagels or
Lox??</a></b></p>
Where ChooseURL is:
function ChooseURL(Global, Local)
{
{
if (exits(Global))
{
return Global;
}
else
{
return Local;
}
}
}
The goal is to have an href link to the file on the web, when connected to
the internet, and, if not connected to the internet, to a local copy of the
file. Note that the Global uRL may/will require processing by another
JavaScript.
How can this be done?
in my HTML documents:
<p><b><a
href=""ChooseURL("http://www.standards.com/index.html?Sorting","file://Sorti
ng/SortPerformanceComparison-Description.html")"">Bagels or
Lox??</a></b></p>
Where ChooseURL is:
function ChooseURL(Global, Local)
{
{
if (exits(Global))
{
return Global;
}
else
{
return Local;
}
}
}
The goal is to have an href link to the file on the web, when connected to
the internet, and, if not connected to the internet, to a local copy of the
file. Note that the Global uRL may/will require processing by another
JavaScript.
How can this be done?