Getting an error will not run the onload function.