Mam funkciu
Kód:
function refresh()
{
window.setTimeout("window.location='index.php'",2000);
}
ktora funguje, ale potrebujem volat zadanu stranku,cize takto nejak
Kód:
function refresh(page)
{
window.setTimeout("window.location='"page"'",2000);
}
Ale tymto sposobom mi to nejde. Ako to ma byt spravne? Diky