Re: spawning new window with PHP

From: Date: Tue, 10 Jun 2003 15:30:54 +0000
Subject: Re: spawning new window with PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-150928@lists.php.net to get a copy of this message
Simply name the window lastwin=window.open("http://www.google.com", "some_name"); and then create links: <a href=" url " target="some_name"> nothing with php Amanda McComb wrote:
I have a list of urls in a MySQL database and I use PHP to get them out. I need to spawn a new window and use one of those URLs as the location for the new window. Is there PHP code that can do this? Here is part of the javascript I currently use: <SCRIPT Language="JavaScript">
    lastwin=window.open();
lastwin.location="http://www.google.com";
    if (jsversion >= 1.2) {
      lastwin.moveTo(0,0);
      lastwin.resizeTo(screen.availWidth,screen.availHeight);
      lastwin.focus();
    }
    this.window.resizeTo(600, 400);
    this.window.focus();
</script> if PHP can't do this, is there a way to create a variable in PHP that can be used in javascript? THanks, Amanda


« previous php.general (#150928) next »