User Profile

Collapse

Profile Sidebar

Collapse
lewnussi
lewnussi
Last Activity: Mar 29 '08, 08:57 PM
Joined: Mar 3 '08
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • lewnussi
    replied to JS onclick multiple functions
    I tried that but now when the alert window for function_1 is clicked, the form goes to the "action=" without any entry needing to be made in the form.

    Code:
    function func_3(health)
    {
    var val = true;
    val = function_1(health);
    //in case function_1 returns true, we call function_2
    if(val)
    {
    val = function_2(health);
    }
    return val;
    }
    
    function
    ...
    See more | Go to post

    Leave a comment:


  • lewnussi
    started a topic JS onclick multiple functions

    JS onclick multiple functions

    I am trying to call more than one function starting with onclick in a form to work in all browsers.

    In the form, this calls only function_1:
    Code:
    <input type="submit" value="thevalue" name="goodname" onclick="return function_1(this.form);function_2(this.form);" />
    So I tried only function_1 for the onclick, and put this in a .js file, but it also does not...
    See more | Go to post
No activity results to display
Show More
Working...