Hi, simple question I guess. The question is actually in the code itself as
this was the simplest way to explain.
....
var favorite = GetCookie('lang ');
if (favorite != null) {
switch (favorite) {
case 'nederlands' : url = 'ned.html';
break;
case 'english' : url = 'en.html';
break;
case 'francais' : url = 'fr.html';
break;
case 'deutsch' : url = 'de.html';
break;
case 'italiano' : url = 'I dont want you to take another page, continue
loading this page because this is the italiano page';
}
window.location .href = url;
}
....
Anyone can give me the magic word I'm searching for? I thought it was "self"
but that didn't do the trick, damn :-). And when I leave it empty then it
hangs in a loop. I just want to say "when case is Italiano skip "the
window.location .href" part and continue loading this page.
Many Thanks!
--
Grtz,
Koen Colen
this was the simplest way to explain.
....
var favorite = GetCookie('lang ');
if (favorite != null) {
switch (favorite) {
case 'nederlands' : url = 'ned.html';
break;
case 'english' : url = 'en.html';
break;
case 'francais' : url = 'fr.html';
break;
case 'deutsch' : url = 'de.html';
break;
case 'italiano' : url = 'I dont want you to take another page, continue
loading this page because this is the italiano page';
}
window.location .href = url;
}
....
Anyone can give me the magic word I'm searching for? I thought it was "self"
but that didn't do the trick, damn :-). And when I leave it empty then it
hangs in a loop. I just want to say "when case is Italiano skip "the
window.location .href" part and continue loading this page.
Many Thanks!
--
Grtz,
Koen Colen
Comment