Run a function on page load using SmartClient -


when page loads, want hide buttons based on user permissions.

i have function need, have press button call it.

how run applyuserpermissions function right after page loads using smartclient?

function applyuserpermissions(){     btn.setdisabled(false); } 

same in plain javascript

the statements executed, 1 one, in same order written.

~ w3c javascript school

so this:

<script>  function applyuserpermissions(){     btn.setdisabled(false); }  // calls on page load applyuserpermissions();  </script> 

Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -