Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
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 surveying the Monastery: (8)
As of 2014-12-21 04:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (103 votes), past polls