• ORBITER-FORUM will be temporarily closed at 2020-09-23 08:00 UTC while we complete some OF maintenance tasks. The amount of downtime is expected to take up to one hour, but probably less.

A
Reaction score
0

Profile posts Latest activity Postings Media Albums About

  • <HTML>
    <HEAD>


    <SCRIPT LANGUAGE="JavaScript">
    <!-- Beginning of JavaScript -
    function changecolor(code) {

    document.bgColor=code

    }
    </SCRIPT>

    </head>

    </SCRIPT>

    </HEAD>



    <BODY>
    <FORM>
    <input type="button" name="Button1" value="BLACK" onclick="changecolor('black')">

    <input type="button" name="Button2" value="RED" onclick="changecolor('red')">

    <input type="button" name="Button3" value="GREEN" onclick="changecolor('green')">

    <input type="button" name="Button4" value="BLUE" onclick="changecolor('blue')">

    <input type="button" name="Button5" value="YELLOW" onclick="changecolor('yellow')">

    <input type="button" name="Button6" value="WHITE" onclick="changecolor('white')">

    </FORM>

    <form name="calculator" >
    Solution<input type="textfield" name="ans" value="">
    <input type="reset" value="Reset">
    <input type="button" value="=" onClick="document.calculator.ans.value=eval(document.calculator.ans.value)">
    </form>




    </BODY>
    </HTML>
  • Loading…
  • Loading…
  • Loading…
  • Loading…
  • Loading…
Top