Hi all
I need submit a form from javascript code. My code near this code:

<!-- My Code -->
<form name="myform" action="..." method="POST>
<input type="hidden" name="id" value="0">
<script language="javascript">
function submitform(iId)
  alert("foo"); // This is code is dummy
  retrun false;
<a href="..." onMouseDown="submitform(1);">Id One</a><br>
<a href="..." onMouseDown="submitform(2);">Id Two</a><br>
<a href="..." onMouseDown="submitform(1000);">Id 1000</a><br>
<!-- End My Code -->

If I remove alert() call in submitform function, this code noting work, but
if i used alert() or confirm() function this code working, Why?
How can i remove alert() function and my code work?

Thanks for Answer

Madjid Nasiri

PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to