This script works fine in IE...the page responds as though the button were clicked. But not in Firefox, Opera or Safari.
...and the button looks like this:
Any ideas?
Code:
<script language="javascript" type="text/javascript"><![CDATA[<!--
/* Service-specific script goes here */
function func1()
{
document.getElementById('btnSave').click();
}
window.onload=func1;
//--> ]]></script>
Code:
<input type="button" value="" name="btnSave" onclick="javascript: {ddwrt:GenFireServerEvent(concat('__insert;__commit;__redirectsource;__redirectToList={',ddwrt:EcmaScriptEncode($ListName),'};'))}" style="border-style: none; border-color: #FFFFFF; height: 2px; background-color: #FFFFFF;" />