{{theTime}}

Search This Blog

Total Pageviews

InnerHTML example

<!DOCTYPE html>
<html>
<body>

<h2>4+5=?</h2>

<p id="demo"></p>

<button type="button" onclick ='document.getElementById("demo").innerHTML = "Correct Answer!!"'>9</button>
<button type="button" onclick='document.getElementById("demo").innerHTML = "Wrong Answer!!"'>5</button>
<button type="button" onclick='document.getElementById("demo").innerHTML = "Wrong Answer!!"'>4</button>

<button type="button" onclick='document.getElementById("demo").innerHTML = "Wrong Answer!!"'>7</button>
</body>
</html>

No comments:

Best Client Optimized Programming Language for Mobile Development?

Use Google's Dart language, which is Object-oriented, class-based and garbage-collected language with C-Style.  Dart can compile to eith...