Reply to Re: Submit button to also close popup form

Your name:

Reply:


Posted by Guillaume on 12/08/05 14:51

Neil:
> I'm not real clear on how to apply this and syntax.
> Would the "blaat.php" be my submit to destination on the server?
> This is the OnSubmit line from my form(close_window() added):
> <form onsubmit="return validate()" "close_window()" name="smsform"
> id="smsform"
> action="http://sms.relay.com/send/sms" method="GET">
>
> It didn't close the window when tested. Do I need a separator between
> onsubmit items, or two onSubmits?
> Is close_window() a function I must create?
> Do I need a <script type="text/javascript"> before your example, and
> </script> after?

I use to put the javascript code in the targeted page, not in the form.
If this is an option...

<script language="javascript"><!--//
window.close();
//--></script>

--
Advertize your site
http://www.milliondollarscreenshot.com/

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация