Share info

Sunday, August 23, 2015

Change the background color dynamically using java script

<html>
<head>
<script>

function start()
{
document.body.style.backgroundColor="red";
}

</script>
</head>
<body>
<p>Hi Welcome</p>
<input type="button" onclick="start()" value="Click me" >
</body>
</html>
Posted by Vadivelan Udayakumar at 7:48 AM
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Blog Archive

  • ►  2020 (2)
    • ►  July (2)
  • ►  2018 (1)
    • ►  October (1)
  • ►  2017 (2)
    • ►  July (2)
  • ►  2016 (3)
    • ►  September (2)
    • ►  March (1)
  • ▼  2015 (19)
    • ►  November (4)
    • ▼  August (8)
      • Dynamic positioning (TEXT GROWING IN HTML) USING JS
      • Change the background color dynamically using java...
      • Collections CHILDREN in html using JS
      • COLLECTIONS IN HTML (Dynamic Object Model Using JS)
      • IMAGE SWITCHER Android Example
      • Email In Android
      • OTHER AVERAGE CALCULATION ALGORITHM
      • HOW TO AVOID CLICKS OR COPYING FROM A WEBPAGE
    • ►  July (3)
    • ►  June (1)
    • ►  April (1)
    • ►  January (2)
  • ►  2014 (15)
    • ►  December (1)
    • ►  November (1)
    • ►  August (1)
    • ►  July (11)
    • ►  February (1)
  • ►  2013 (2)
    • ►  August (1)
    • ►  July (1)
Picture Window theme. Powered by Blogger.

About Me

Vadivelan Udayakumar
View my complete profile