How To Validate an iFrame with onload in XHTML

Can someone share with me how I would validate the link below? The XHTML includes an iframe that has the “onload” attribute which will not validate. Here is the page in question:

LINK-
http://www.securehostserver.info/rvf/financing/

Thanks in advance to anyone who can help!

Todd

onload is JavaScript and so goes in a separate JavaScript file and not in the (X)HTML.

If it is in JavaScript attached to the page it is to run in then use window.onload = and if it is in some other frame then reference the right frame and use the .onload event handler on it.

Alternatively for even greater flexibility use an event listener instead.

The only JavaScript that ever needs to go in the (X)HTML is

<script type=“text/javascript” src=“extjsname.js”></script> for HTML

or

<script type=“application/javascript” src=“extjsname.js”/> for XHTML

where extjsname.js is the name of the file containiing the JavaScript.

The onload attribute is within the iframe. Do your comments still apply to this scenario?

Here is the code:

<iframe src="http://www.site.com/cgi/list.exe?dealer=name&amp;price>0&amp;price<10000" name="content" id="content" scrolling="auto" width="940" height="1400" frameborder="0" onload="scroll(0,0)"></iframe>