windows.onload

Description

Hi Philippe,

window.onload in script does not execute...

While trying to use Google Maps, spreadsheet etc. we've decided that there is a problem with scripting the code. I've taken it to the bare minimum - alert me when the page loads - nothing happens.

How so I ensure that this code executes after the page has fully loaded?

In our full requirement, the google libraries do not load so our tests fail, we must have onload to ensure the google maps script libraries load correctly and then the map is displayed.

Many thanks and best regards
Seán

Environment

Windows 8.1, Chrome, Java

Steps to reproduce

add the following code to a html widget...and execute.

<script type="text/javascript">
console.log("Step 1-0");
window.onload = function () {
alert('Welcome!');
}
console.log("Step 1-1");
</script>

Workaround

None

External Link

None

Status

Assignee

Unassigned

Reporter

Sean McPoland

Reference

None

Components

Affects versions

6.5