javascript buttons

110 pts.
Tags:
JavaScript
I need to create javascript that makes a button that says click me and then when you click on it changes the writing on the button to say click me again and then when you click on this it pops up a alert box and when you click on the alert box it brings you back to the first click here. I have a midterm in 3 hours. please help

Answer Wiki

Thanks. We'll let you know when a new response is added.

windows 7

 

Discuss This Question: 8  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    That's your homework.
    69,045 pointsBadges:
    report
  • polevault
    I have a midterm in two hours and the proff didn't discuss how to have one button change to another.  I understand how to make the first button and how to have the alert box come up but i don't understand how to change from one button to the next 
    110 pointsBadges:
    report
  • carlosdl
    Maybe something like this: document.getElementById("myButton").value="Click me again";
    69,045 pointsBadges:
    report
  • polevault
    So when you get it to the alert box, how do you get it to go back to the first click me? 
    110 pointsBadges:
    report
  • polevault
    I'm now forwarding this info on to Will.  He has lef for his midterm and wants to know if that was a function. 
    110 pointsBadges:
    report
  • polevault
    His midterm starts in an hour 
    110 pointsBadges:
    report
  • polevault
    Just wanted to say thank you for trying to help out and taking time out of your day. It looks like finding a good tutor might help in the future.  agian.... thankyou   
    110 pointsBadges:
    report
  • TomLiotta
    how do you get it to go back to the first click me?   You get it to go back the same way you got it to change the first time.   Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following