Results 1 to 5 of 5
  1. #1

    How To PUSH new window open with javascript

    I am using a PHP chat script I created. The Chat writes to a file and then updates and opens the file every 5 seconds to display it in the chat window.

    I want to be able to push a URL to my partner's chat window which will then open a new window in my partner's browser (Using javascript).

    Something like a BODY onload command, but onload will not work in this instance.

    Example =====
    <BODY OnLoad="MakeWindow('newwindow.php','Title Of Page','')">
    ==========

    Any suggestions?

  2. #2
    Join Date
    May 2002
    Location
    UK
    Posts
    2,994
    Of course if he has some form of advert popup blocker installed it won't work.

    If it's just a plain php file then I don't see any reason why the onload won't work. Do you have some more details... and what is your MakeWindow function?

  3. #3
    Join Date
    Oct 2002
    Location
    Canada
    Posts
    3,100
    You can open window on any EVENT no only onLoad: OnClick, onMouseOver ,onSubmit .....

  4. #4
    Join Date
    May 2002
    Location
    Edmonton, Canada
    Posts
    978

  5. #5
    Join Date
    May 2002
    Location
    Edmonton, Canada
    Posts
    978

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •