html form and js problem?

Mahdi

New member
Problem with onclick event in html code?
I have some problem in my html code.
i need to send some data for download correct file. but when i use this way it doesn't work in IE and firefox but works in chrome. another thing is i use this way in some other pages and they works correctly!
my code is:
//some code
<script language="javascript">
function click()
{
document.getElementById("downloadform").submit();
}
</script>
<table><tr><td>
<img src="..\images\title1.GIF" />test
test


<h6><a onclick="click()">download</a></h6>
<form action="downloadthisfile.php" method="post" id="downloadform"><input type="hidden" value="15" name="id" /></form>

//some code
 
Back
Top