problem in changing the actual event handler into our own event

A

ashok.dhananjeyan

Hi


I have a problem in changing the actual event handler into our own
event.

i.e

var f = document.forms("formname")
if(!f) continue;
_subH = f.submit
alert("Submit handler" + _subH) ;

f.submit = SampleSubmit


function SampleSubmit()
{
..
..
..
..


..

f.submit = _subH
f.submit();

}


Actually in this code i am trying to assign the actual submit handler
into variable _subH. but at very first time the handler cannot be
captured into that variable _subH(error says "access denied:
-2147024891). once the HTML page is refreshed ,the handler can be
retrieved.

This error is occurred only when we are using other than the submit
button like "button,anchor tag", to submit the page.

Thanks in advance.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,740
Latest member
JudsonFrie

Latest Threads

Top