Page 1 of 1

Page is not going back after click ok in mozila and chrome

Posted: Sat Oct 10, 2009 12:26 am
by manojsemwal1
Hai iam using the following script on submiting the page. when the page is submit the alert message will be displayed and after press Ok it will go back main page .
in explorer and opera its working but Mozila and chrome its not working.

any alternet option to do this job...

?>
echo "<script>alert("The record has been successfully inserted ")</script>;
echo "<script>navigate('studycenterdetail.php')</script>";
exit();

</script>
<?php

Manoj

Re: Page is not going back after click ok in mozila and chrome

Posted: Thu Oct 15, 2009 11:31 pm
by jegan.aaodis
Hi,

Use this code,
window.navigate("http://www.java2s.com");

Thanks