Results 1 to 8 of 8

Thread: Creating actions on push button click

  1. #1

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Creating actions on push button click

    Hello all,

    How do I make a message box or something change on a push button's click or a drop down menu's selection?

  2. #2
    Fanatic Member BillBoeBaggins's Avatar
    Join Date
    Jan 2003
    Location
    in your database, dropping your tables.
    Posts
    628

    Re: Creating actions on push button click

    Your going to need to add a lot more context to your question.

  3. #3
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: Creating actions on push button click

    <input type="button" onClick="javascript:alert('is this what you mean?')">

    Something like that?
    Don't Rate my posts.

  4. #4

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Creating actions on push button click

    Yes that's exactly what I want. Thanks man!

    But I have a few other questions.

    I tried this with no results

    HTML Code:
    <input type="button" onClick="javascript:information('Hello?')">
    Can you give me a list of all possible types of alert messages and possibly how to change the title of the message boxes? I wish this were as easy as VB

  5. #5
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: Creating actions on push button click

    http://www.javascriptkit.com/javatutors/alert2.shtml

    I don't believe your allowed to change the title, as a security precaution, since you could pop the box up on the page and try and make it look like something coming from windows.
    Don't Rate my posts.

  6. #6

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Creating actions on push button click

    Dude nice site.


    Haha wish I could give you more than just 1 rep

  7. #7

    Thread Starter
    Fanatic Member paralinx's Avatar
    Join Date
    Jun 2005
    Location
    Michigan
    Posts
    987

    Re: Creating actions on push button click

    But what I just realized is that is java, I am looking for straight up HTML. Sorry that I didn't specify but your first code you gave me worked.


    All I'm using is NotePad to write the HTML in

  8. #8
    PowerPoster Pc_Madness's Avatar
    Join Date
    Dec 2001
    Location
    Melbourne, Australia
    Posts
    2,765

    Re: Creating actions on push button click

    No, thats JavaScript, just as,
    HTML Code:
    onClick="javascript:information('Hello?')"
    is Javascript.

    You need to do a combination of HTML + Javascript for what your after.

    so onClick="javascriptrompt('Sup!')"
    Don't Rate my posts.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width