??? She/He most certainly does *NOT* want to use
Code:
window.onload = miles_per_gallon;
That would be a huge mistake.
The real problem is that she/he has *BOTH* a FUNCTION and a VARIABLE with the *SAME NAME*:
miles_per_gallone.
*** KABLOOEY ***
(Well, that would be true *IF* she/he actually had a function
miles_per_gallon. The function declaration is both wrong and commented out.)
(And, finally, she/he has a string that starts with " and ends with ' which gives a syntax error.)
*************
Edit: Wolfshade's next comment duly noted. Probably gender put first. <grin/>