By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,945 Members | 1,648 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,945 IT Pros & Developers. It's quick & easy.

Remove the Body Onload EventHandler !!

P: n/a
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

Jul 17 '06 #1
Share this Question
Share on Google+
1 Reply


P: n/a
maverick1611 said the following on 7/17/2006 4:05 PM:
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/
Jul 17 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.