Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Attaching to Particular Form Submissions

by erroneousBollock (Curate)
on Nov 28, 2007 at 06:28 UTC ( #653489=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if (window.addEventListener) {
          window.addEventListener("load",setupEvents,false);
    ...
       } else {
          window.onload=setupEvents;
    }
    
  2. or download this
    function setupEvents(evnt) {
       document.forms[1].onsubmit=myAlert;
    ...
    function myAlert() {
            alert("gackerriffic");
    }
    
  3. or download this
        var isIE = /*@cc_on!@*/false; // is the browser Internet Explorer 
    +?
        var addEvent = !isIE
    ...
           });
         });
    
  4. or download this
      myNode.onevent = function() {
         // your code
         if (myNode.onevent) myNode.onevent.call(myNode,arguments);
      };
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://653489]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (16)
As of 2015-01-29 15:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My top resolution in 2015 is:

















    Results (241 votes), past polls