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

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
manojsemwal1
Forum Contributor
Posts: 217
Joined: Mon Jun 29, 2009 4:13 am
Location: India

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

Post 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
jegan.aaodis
Forum Newbie
Posts: 15
Joined: Fri Oct 09, 2009 1:56 am

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

Post by jegan.aaodis »

Hi,

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

Thanks
Post Reply