open window using php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • paulrajj
    New Member
    • Sep 2008
    • 47

    open window using php

    hi everyone,

    Is there any way (or function) available in php to open or close the browser window with out using javascript?

    thanks in advance.

    paul
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Originally posted by paulrajj
    hi everyone,

    Is there any way (or function) available in php to open or close the browser window with out using javascript?

    thanks in advance.

    paul
    Nope. PHP runs on the server, not the browser.

    Comment

    • prabirchoudhury
      New Member
      • May 2009
      • 162

      #3
      Hey
      try one of those ..,might be helpful
      <?php
      $link = '<a href="admin.php " target="_blank " class="css_clas s">Popup 1</a>';
      echo $link;
      ?>
      <br>
      <a href="admin.php " onclick="window .open(this.href , '_blank', 'status=no,tool bar=yes,menubar =yes,location=n o,scr ollbars=yes');r eturn false; ">Popup 2</a>
      <a href="#" onclick="javasc ript: window.open('ad min.php', '', 'toolbar=,locat ion=no,status=n o,menubar=yes,s crollbars=yes, resizable=no,wi dth=400,height= 500'); return false" class="mainleve l" >Popup 3</a>

      have a look on:
      <links removed: they aren't relevant to the post>
      Last edited by Markus; May 2 '09, 07:39 AM. Reason: Advertising.

      Comment

      Working...