How to execute JavaScript after page load?

前端 未结 6 844
我寻月下人不归
我寻月下人不归 2020-12-10 11:23

I would like to execute a JavaScript function after the page was loaded. At the moment I have a commandButton and everything works fine. However it would be more comfortable

6条回答
  •  攒了一身酷
    2020-12-10 11:38

    Using OndrejM second option of a remoteCommand but inside an outputPanel configured to load after the page load by adding deferred="true" and deferredMode="load":

     
         
    
    

提交回复
热议问题