unable to get back in mozila firfox

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

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

unable to get back in mozila firfox

Post by manojsemwal1 »

hai iam using the below script to give alert message in php its work in ie and opera but not work in firefox.
after submitting the page its stuck in firefox.
if i use header('location:');
it will directly jump the related page without any any alert message...
any solutions............

?>

<script>alert("The record has been successfully Updated ")</script>
<script>window.navigate('Studentdetail.php')</script>


<?php
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: unable to get back in mozila firfox

Post by requinix »

Firefox doesn't support the (non-standard) window.navigate method.

Code: Select all

<script>document.location.href = 'Studentdetail.php';</script>

The bit that nobody reads because they don't care:

The method you're using is antiquated and ugly. It looks nicer when you go directly to the next page (Studentdetail.php) and display whatever message you want there instead. Display it in HTML, not as a JavaScript message box.
Post Reply