Skip to content

How to using two ‘s in single View Page

i have write code to onload function. i also have some scritps to execute in click function. in the same script window.load=alert("loaded"); is not working but open a new

<script>
window.load = alert("loaded");
</script>

is working.

Whats wrong with the Code..

Thanks in advance.

Answer

Thanks for all. i use

<script>
     $(document).ready(function () {
    // code here
    }
</script>