popup window not working in javascript

Please support our JavaScript / DHTML / AJAX advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved

Join Date: Dec 2007
Posts: 37
Reputation: psathish2 is an unknown quantity at this point 
Solved Threads: 0
psathish2 psathish2 is offline Offline
Light Poster

popup window not working in javascript

 
0
  #1
Jul 17th, 2008
hi

below the coding i not opened the popup window




Code:
JavaScript / DHTML / AJAX Syntax (Toggle Plain Text)
  1. <html>
  2. <head>
  3.  
  4. <script language="JavaScript">
  5. window.open('test.htm','myExample9','width=200,height=200');
  6.  
  7. }
  8.  
  9. </script>
  10.  
  11. </head>
  12. <body>
  13. <form action="test.htm" target="myExample9">
  14. <input type="submit" value="Open new window">
  15. </form>
  16. </body>
  17. </html>
Last edited by Tekmaven; Jul 17th, 2008 at 5:28 am. Reason: Code tags
Reply With Quote Quick reply to this message  
Join Date: Jul 2008
Posts: 7
Reputation: himi is an unknown quantity at this point 
Solved Threads: 1
himi himi is offline Offline
Newbie Poster

Re: popup window not working in javascript

 
0
  #2
Jul 17th, 2008
Hi,
You should put the window.open() in a method and then call that menthod on the onClick event of the submit button.

Thanks,
Himi
Reply With Quote Quick reply to this message  
Join Date: Dec 2007
Posts: 37
Reputation: psathish2 is an unknown quantity at this point 
Solved Threads: 0
psathish2 psathish2 is offline Offline
Light Poster

Re: popup window not working in javascript

 
0
  #3
Jul 18th, 2008
thank you

i did the popup windows
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC