943,744 Members | Top Members by Rank

Ad:
  • PHP Discussion Thread
  • Marked Solved
  • Views: 5484
  • PHP RSS
Apr 3rd, 2008
0

open popup without using function

Expand Post »
PHP Syntax (Toggle Plain Text)
  1. <html>
  2. <head></head>
  3. <body>
  4.  
  5. <?php
  6. print "<script type='text/javascript'>";
  7.  
  8. print "window.open='http://www.examples.com/page.html','new_window1','status=1,scrollbars=1,resizable=0,menu=no,width=320,height=220'";
  9.  
  10. print "</script>";
  11. ?>
  12. </body>
  13. </html>

Not able to open popup.Is this correct code.
Similar Threads
Reputation Points: 3
Solved Threads: 2
Junior Poster
kings is offline Offline
107 posts
since Nov 2007
Apr 3rd, 2008
0

Re: open popup without using function

Try this.
php Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3. </head>
  4. <body>
  5. <?php
  6. print "<script type='text/javascript'>";
  7. print "window.open('http://www.examples.com/page.html','new_window1','status=1,scrollbars=1,resizable=0,menu=no,width=320,height=220');";
  8. print "</script>";
  9. ?>
  10. </body>
  11. </html>
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Apr 3rd, 2008
0

Re: open popup without using function

thank u...
Reputation Points: 3
Solved Threads: 2
Junior Poster
kings is offline Offline
107 posts
since Nov 2007
Apr 3rd, 2008
0

Re: open popup without using function

You are welcome
Moderator
Featured Poster
Reputation Points: 524
Solved Threads: 356
Purple hazed!
nav33n is offline Offline
3,878 posts
since Nov 2007
Jul 15th, 2010
0

but it still blog by browser

but it still blog by browser,

<snipped>
Last edited by nav33n; Jul 16th, 2010 at 4:46 am. Reason: Website snipped. Read forum rules. Keep it spam free.
Reputation Points: 10
Solved Threads: 0
Newbie Poster
vnfriendly is offline Offline
1 posts
since Jul 2010

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in PHP Forum Timeline: Getting the name of an uploaded file and using it for it's display name.
Next Thread in PHP Forum Timeline: Submit a form to email





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC