Hi,<BR>Is there a way to call a JavaScript function from the code-behind? I'm trying to call a LoadDefaults() function but I only want to call it in certain instances....I know how to add attributes in the code-behind for events besides onload. any help would be great!<BR><BR>thanks,<BR>peterPeter, if you're using browsers that support the div tag, (I believe ie 4 or later), you can put a label on the page. Then set a server label text in the code behind to the javascript function.<BR><BR>e.g.: lblJScriptFunction.Text="<SCRIPT LANGUAGE='JavaScript'>window.alert('hello');</SCRIPT>";Thanks a lot! I'll give it a shot...<BR><BR>Peter