The onLoad event occurs only in the browser.
The ASP doesnt know the difference between HTML, CSS, and client-side script.
Suppose the ASP looks like this...[tt]
<body style="color:red;" onLoad="alert('The date is: <%= cStr(Date) %>');">[/tt]
What the browser actually receives will look like this:[tt]
<body style="color:red;" onLoad="alert('The date is: 3/26/2007');">[/tt]
As far as the ASP is concerned, this is all plain text that will be sent to the Browser as an HTTP Response.
... but the Browser will see:
An HTML element: [blue][tt]<body>[/tt][/blue]
CSS instructions: [blue][tt]color:red;[/tt][/blue]
An DOM event with client-side JavaScript: [blue][tt]onLoad="alert('The date is: 3/26/2007');"[/tt][/blue]