Henk Z Henk Z - 6 months ago 40
HTML Question

JavaScript form submit does not work in Firefox

I use the following script and it is working well for other browsers, but it does not work in Firefox.

What does not work, is when clicking on the

<a href>

How can I solve this?

function submitform() {

<a class="pakb-box" href="javascript: submitform()" target="_blank">
<p class="pakb-box-icon"><i class="icon-webadresgegevens"></i></p>
<form id="serverlogin" action="http://example.com" method="post" target="_blank">
<input name="token" value="1234567890" type="hidden">
<input name="SESSID" value="1234567890" type="hidden">
<input name="PHPSESSID" value="1234567890" type="hidden">
<input value="Open" type="submit">


try this

remove the href attribute . and put onclick instead

<a class="pakb-box" onclick="submitform()" target="_blank"> 

instead of

 <a class="pakb-box" href="javascript: submitform()" target="_blank">