Javascript Submit
Posted
by Mick
on Super User
See other posts from Super User
or by Mick
Published on 2010-03-28T12:59:02Z
Indexed on
2010/03/28
13:03 UTC
Read the original article
Hit count: 228
JavaScript
Hi I have the following script in my form
function pdf()
{
var frm = document.getElementById("form1");
frm.action = "http://www.abbysoft.co.uk/index.php";
frm.target="_blank"
frm.submit()
}
this is called from the following in my form
<input class="buttn" type="button" value="Test" onclick="pdf()"
The code work up to the frm.submit() but it will not submit
Can anyone offer any advice please ?
© Super User or respective owner