Connecting Tech Pros Worldwide Help | Site Map

Remove the Body Onload EventHandler !!

 
LinkBack Thread Tools Search this Thread
  #1  
Old July 17th, 2006, 08:05 PM
maverick1611
Guest
 
Posts: n/a
Default Remove the Body Onload EventHandler !!

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


  #2  
Old July 17th, 2006, 09:45 PM
Randy Webb
Guest
 
Posts: n/a
Default 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/
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.