-5

I have a simply script. For example:

var rowCount = $('tr').length;
document.write(rowCount);

I want to load this after entire webpage has loaded. How can I do?

gainsky
  • 177
  • 10
  • 2
    `$( window ).load(function() { ... }) `?. See https://learn.jquery.com/using-jquery-core/document-ready/ – j08691 Apr 06 '16 at 13:51

1 Answers1

-1

Use following script:

<script type="text/javascript">

    $(document).ready(function () {
     var rowCount = $('tr').length;
      document.write(rowCount);
    });
</script>
Kapil Kshirsagar
  • 282
  • 1
  • 4
  • 19