To be honest, I'm not quite sure what I'm trying to do.
On my website I use IFrames. There is a 'left' frame and an 'upd' frame. On the page (not in an IFrame) there is a link that will link the user to a page titled name+"S".
This is the code that I have got on OnClick on the link:
function changeIt()
{
var enwffeil = upd.location.href;
enwffeil = (enwffeil.replace(ffoldercychwyn,""));
var darnau = enwffeil.split(".");
enwffeil = darnau[0] + "S" + "." + darnau[1];
*****PSEUDO*****
if enwffeil exists then
enwffeil = upd.location.href;
end if
return enwffeil;
}
// -->
But the problem is, if for any reason that the name+"S" does not exist then it shows 404 in the frame!
A computer always does what you tell it to, but rarely does what you want it to.....