Passing a parameter to an html function - by user338543 how pass a parameter to onload function?? <body onLoad="myFunction(<%=myVar%>)"> It crashes. The parameter is a vb variable defined with Dim The function is a vbscript function Urgent HELP Read the article