At the moment we have an .htaccess file in our root directory as follows... Redirect 301 /index.html http://www.ourdomain.com/forum php_flag display_errors on php_value error_reporting 7 Obviously when someone goes to www.ourdomain.com it redirects them to www.ourdomain.com/forum What we'd like to do is the following: 1. When someone goes to www.ourdomain.com, it redirects them to www.ourdomain.com/forum/flashchat.php 2. Then, open a brand new window and go to www.ourdomain.com/forum They would then have a flashchat.php window open in the background and a forum window open in the foreground. Anyone got any ideas how we could achieve this?
I've used the following code, but get an error - any ideas? window.open ("http://www.ourdomain.com/forum/chat/flashchat","location=1,status=1,scrollbars=1,width=100,height=100"); Redirect 301 /index.html http://www.ourdomain.com/forum php_flag display_errors on php_value error_reporting 7 PHP:
The JavaScript code is to be placed in your flashchat.php file. Somewhere where you echo out the HTML output. <script type="text/javascript"> window.open ("http://www.ourdomain.com/forum/chat/flashchat","location=1,status=1,scrollbars=1,width=100,height=100"); </script> Code (markup):