Submit a page from the javascript so that the second page can access the fields of the first page.

Inside javascript
-------------------------
document.formname.submit();

formname=name of the form where the action has been given.

The second form will be able to access the fields of the formname.


Example
---------


 <script language="javascript">
     function delete1()
    {
         document.images.submit();
          return;
    }
 </script>

<FORM id=images name=images action="delete_image.asp?gallery_id=<%=gallery_id%>" method=post>
<input type="button" value="Delete" onClick="return delete1();" />
</form>

if we will give input type is submit then it will not work.