Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Answer

spelling, wording
Source Link
Matthias Braun
  • 34.9k
  • 27
  • 158
  • 177

Your original question was unclear, assuming Kevin's edit/interpretation is correct, then this first option doesn't apply

The typical options is using the onload event:

<body onload="javascript:SomeFunction()">
....

You can also place your javascriptJavaScript at the very end of the body; it won't start executing until the doc is complete.

<body>
 ...
 <script type="text/javascript">
 SomeFunction();
 </script>
</body>

And, another options,Another option is to consider usinguse a JS framework which intrinsically does this:

// jQuery
$(document).ready( function () {
 SomeFunction();
});

Your original question was unclear, assuming Kevin's edit/interpretation is correct then this first option doesn't apply

The typical options is using the onload event:

<body onload="javascript:SomeFunction()">
....

You can also place your javascript at the very end of the body; it won't start executing until the doc is complete.

<body>
 ...
 <script type="text/javascript">
 SomeFunction();
 </script>
</body>

And, another options, is to consider using a JS framework which intrinsically does this:

// jQuery
$(document).ready( function () {
 SomeFunction();
});

Your original question was unclear, assuming Kevin's edit/interpretation is correct, then this first option doesn't apply

The typical options is using the onload event:

<body onload="javascript:SomeFunction()">
....

You can also place your JavaScript at the very end of the body; it won't start executing until the doc is complete.

<body>
 ...
 <script type="text/javascript">
 SomeFunction();
 </script>
</body>

Another option is to use a JS framework which intrinsically does this:

// jQuery
$(document).ready( function () {
 SomeFunction();
});
Commonmark migration
Source Link

Your original question was unclear, assuming Kevin's edit/interpretation is correct then this first option doesn't apply

The typical options is using the onload event:

<body onload="javascript:SomeFunction()">
....

You can also place your javascript at the very end of the body; it won't start executing until the doc is complete.

<body>
 ...
 <script type="text/javascript">
 SomeFunction();
 </script>
</body>

And, another options, is to consider using a JS framework which intrinsically does this:

// jQuery
$(document).ready( function () {
 SomeFunction();
});

Your original question was unclear, assuming Kevin's edit/interpretation is correct then this first option doesn't apply

The typical options is using the onload event:

<body onload="javascript:SomeFunction()">
....

You can also place your javascript at the very end of the body; it won't start executing until the doc is complete.

<body>
 ...
 <script type="text/javascript">
 SomeFunction();
 </script>
</body>

And, another options, is to consider using a JS framework which intrinsically does this:

// jQuery
$(document).ready( function () {
 SomeFunction();
});

Your original question was unclear, assuming Kevin's edit/interpretation is correct then this first option doesn't apply

The typical options is using the onload event:

<body onload="javascript:SomeFunction()">
....

You can also place your javascript at the very end of the body; it won't start executing until the doc is complete.

<body>
 ...
 <script type="text/javascript">
 SomeFunction();
 </script>
</body>

And, another options, is to consider using a JS framework which intrinsically does this:

// jQuery
$(document).ready( function () {
 SomeFunction();
});
added 2 characters in body
Source Link
james.garriss
  • 13.4k
  • 7
  • 86
  • 101

Your original question was unclear, assuming Kevin's edit/interpretation is correct then this first option doesn't apply

The typical options is using the onload event:

<body onload="javascript:SomeFunction()">
....

You can also place your javascript at the very end of the body; it won't start executing until the doc is complete.

<body>
 ...
 <script type="text/javascript">
 SomeFunction();
 </script>
</body>

And, another options, is to consider using a JS framework which intrinsically does this:

// jQuery
$(document).ready( function () {
 SomeFunction();
});

Your original question was unclear, assuming Kevin's edit/interpretation is correct then this first option doesn't apply

The typical options is using the onload event:

<body onload="javascript:SomeFunction()">
....

You can also place your javascript at the very end of the body; it won't start executing until the doc is complete.

<body>
 ...
 <script type="text/javascript">
 SomeFunction();
 </script>
</body>

And, another options, is to consider using a JS framework which intrinsically does this:

// jQuery
$(document).ready( function () {
 SomeFunction();
}

Your original question was unclear, assuming Kevin's edit/interpretation is correct then this first option doesn't apply

The typical options is using the onload event:

<body onload="javascript:SomeFunction()">
....

You can also place your javascript at the very end of the body; it won't start executing until the doc is complete.

<body>
 ...
 <script type="text/javascript">
 SomeFunction();
 </script>
</body>

And, another options, is to consider using a JS framework which intrinsically does this:

// jQuery
$(document).ready( function () {
 SomeFunction();
});
added 129 characters in body
Source Link
STW
  • 46.8k
  • 17
  • 109
  • 170
Loading
Source Link
STW
  • 46.8k
  • 17
  • 109
  • 170
Loading
lang-js

AltStyle によって変換されたページ (->オリジナル) /