Connecting Tech Pros Worldwide Forums | Help | Site Map

Remove the Body Onload EventHandler !!

maverick1611
Guest
 
Posts: n/a
#1: Jul 17 '06
Hi all,
is there a way to remove the javascript Onload event handler from
VB.net codebehind using some function like
page.RemoveOnloadEventHandler("page", "myfunctionname();")
please help ...
Thanks




Randy Webb
Guest
 
Posts: n/a
#2: Jul 17 '06

re: Remove the Body Onload EventHandler !!


maverick1611 said the following on 7/17/2006 4:05 PM:
Quote:
Hi all,
is there a way to remove the javascript Onload event handler from
VB.net codebehind using some function like
page.RemoveOnloadEventHandler("page", "myfunctionname();")
please help ...
Parse the document and remove the onload event handler.

Redefine the function in the event handler.

window.onload = null;

If you want a VB.net solution, you may try asking in a VB.net group
instead of a javascript group.

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Temporarily at: http://members.aol.com/_ht_a/hikksnotathome/cljfaq/
Javascript Best Practices - http://www.JavascriptToolbox.com/bestpractices/
Closed Thread