Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 studying the Monastery: (7)
As of 2014-11-22 16:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (123 votes), past polls