• Log in or sign up for an account here: https://www.sythe.org/login

Hey Guys! Help me! Simple HTML code if possible!

shamwOw

Newcomer
Banned
Joined
Sep 10, 2009
Sythe Gold
0
Messages
8
Hey Guys! Help me! Simple HTML code if possible!
Hey. So, i've been toying around with HTML trying to remake other peoples codes. So what i'm asking is, can you make a simple program where there is a text bubble that people type into, then when they press submit, the program generates a random answer of Yes or No or something similar. Is that possible?

i.e. Step 1) User Types Question: Do you like cats?
Step 2) User Then Presses Submit.
Step 3) Program Randomly Generates A Yes Or No Answer To Display For The User
Step 4) Program Displays The Randomly Generated Answer.

** If you understand what I mean, try to help me! Thanks. shamwOw :)
 
Hey Guys! Help me! Simple HTML code if possible!
Javascript would be your best bet.

Code:
<script type="text/javascript">
function Question () {
    var randomnumber=Math.floor(Math.random()*2);
    if (randomnumber == 1) {
        alert("Yes");
    } else {
        alert("No");
    }    
    document.getElementById("QuestionText").value = "";
}
</script>
    <input type="text" id="QuestionText"></input>
    <button type="button" onclick="javascript:Question();">Click Me!</button>
 
Hey Guys! Help me! Simple HTML code if possible!
Visual basic is very easy to use if you want to make such a programme. I remember trying it before.
 
Hey Guys! Help me! Simple HTML code if possible!
What's up with these retards suggesting VB in the web programming board?

And harrylloyd1992, how is VB8 so easily incorporated into sites?

geez, this is depressing...
 
Hey Guys! Help me! Simple HTML code if possible!
What's up with these retards suggesting VB in the web programming board?

And harrylloyd1992, how is VB8 so easily incorporated into sites?

geez, this is depressing...

ASP.NET? You really can code in VB and have it as a website. You just need an IIS server, and I haven't seen one. (Although I haven't looked hard because I don't need one)
 
Runescape Gamblingrunescape gambling
Back
Top