Needing Help with a webpage

Discussion in 'ASP .Net' started by Ravikanth[MVP], Aug 4, 2003.

  1. Hi

    Some action should be done by user (such as button click)
    then only we know whether use has read it or not


    Ravikanth[MVP]
     
    Ravikanth[MVP], Aug 4, 2003
    #1
    1. Advertisements

  2. Ravikanth[MVP]

    laphatize

    Joined:
    Mar 23, 2018
    Messages:
    2
    Likes Received:
    0
    Alrighty, so if you want to see if a user has clicked a button or not? You may need to use some javascript here,

    HTML:
    <button onlick="clicked()"> CLICK ME </button>
    <script>

    var buttonClicked = false;
    function clicked() {

    buttonClicked = true

    if (buttonClicked === true) {
    // WHAT EVER YOU WANT IT TO DO

    }

    };
     
    laphatize, Mar 27, 2018
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.