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?
Printable View
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?
Your going to need to add a lot more context to your question.
<input type="button" onClick="javascript:alert('is this what you mean?')">
Something like that?
Yes that's exactly what I want. Thanks man!
But I have a few other questions.
I tried this with no results
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 ;)HTML Code:<input type="button" onClick="javascript:information('Hello?')">
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.
Dude nice site.
Haha wish I could give you more than just 1 rep :)
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 :)
No, thats JavaScript, just as,
is Javascript.HTML Code:onClick="javascript:information('Hello?')"
You need to do a combination of HTML + Javascript for what your after.
so onClick="javascript:prompt('Sup!')"