![]() |
| ||
| Redirect page function problem with Firefox browser Hi everybody, I am using a java script function which redirect to the page according to the given parameter, and it is working as desired in IE, but I found that it not work with Firefox browsers, so some one plz guide me how it is possible to have the same function which could work on IE and Mozilla firfox. The function code:
Thanks |
| ||
| Re: Redirect page function problem with Firefox browser There is no navigatefunction for the windowobject. Maybe try something like: <?php |
| ||
| Re: Redirect page function problem with Firefox browser Quote:
Unless there is a specific need for using javascript, you could redirect the browser using HTTP headers. <?php |
| ||
| Re: Redirect page function problem with Firefox browser Quote:
I believe they are the same. The user would never see the message however under normal circumstances. Its always good to add a bit of HTML explaining whats happening however, and add the JS that will redirect in case the browser fails to do a HTTP redirect. |
| ||
| Re: Redirect page function problem with Firefox browser > You could just use a meta command (like this): The W3C actually recommends against the use of such tricks for redirection. If Javascript is not a must, Digital Ether's suggestion seems good enough. |
| All times are GMT -4. The time now is 4:01 am. |
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC