0
<!DOCTYPE html>
<html>
<head>
<script>
//if i put window.location= "index.php" here not inside js function it worked but I need it to be inside a function
function newLoad() {
window.location= "index.php"
}
</script>
</head>
<body>
<input type="button" value="press here" onclick="newLoad()">
</body>
</html>
any Ideen, wie kann ich es in der Javascript-Funktion arbeiten lassen?window.location funktioniert nicht innerhalb der js-Funktion
Definieren Sie _nicht working_ !! –
verweist nicht auf index.php –
Ihr Code sollte laufen, was ist also anders? – epascarello