Integrate script with Wordpress 'submit button'?

Discussion in 'JavaScript' started by Burano, Feb 4, 2010.

  1. #1
    I was told this was possible, but not sure how -

    I want to integrate a simple popup script into the 'submit comment' button on a wordpress site. So that, after the person clicks 'submit comment', the popup box pops up...can anyone tell me how to do this?

    where should I be placing the script code?
     
    Burano, Feb 4, 2010 IP
  2. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #2
    s_ruben, Feb 4, 2010 IP
  3. Burano

    Burano Peon

    Messages:
    367
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    thanks, would I add this before or after the submit button (if in comments.php). Does it matter?
     
    Burano, Feb 5, 2010 IP
  4. s_ruben

    s_ruben Active Member

    Messages:
    735
    Likes Received:
    26
    Best Answers:
    1
    Trophy Points:
    78
    #4
    You have to add it like this:

    <input name="submit" type="submit" id="submit" tabindex="5" value="Submit Comment" onclick="window.open(...)"/>
     
    s_ruben, Feb 5, 2010 IP
    Burano likes this.