0

Hi everyone, thanks for reading and replying to this dummy question.

I have a script that open a javascript alert box -
what I would like to do is after clicking the "OK" button is to direct the user to a new page.

the alert is working, just when I click the ok button, nothing happens.
Any help would be aprreciated,
thanks

echo '<script type="text/javascript"> setTimeout(function() { alert("my message" window.location = "/new-page.php";); }, 1000);';
4
Contributors
5
Replies
28
Views
4 Years
Discussion Span
Last Post by anitha407
0

Hi,

Syntax error :-)

setTimeout(function(){alert("my message");location.replace("/new-page.php");},1000);

0

Hi how can i set the timeout function on

<?php
echo ("<SCRIPT LANGUAGE='JavaScript'>
    window.alert('Succesfully Updated')
    window.location.href='http://someplace.com';
    </SCRIPT>");
?>
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.