function
test(){
document.getElementById('formName:buttonId').click();
}
<body on~load="test();">
<h:commandButton action="#{backingBean.methodName}" id="buttonId" style="display: none"/>
</body>
Hi i am trying to use the function on body onload .its hitting more then once test();
Test function is called endless loop...
Thanks
kumar