Knowledge Walls
Ammu
Hyderabad, Andhra Pradesh, India
Passcode:
For changing attribute values:Images in Examples of Javascript 1
852 Views
Examples
<!DOCTYPE html>
    <html lang="en-US">
    <head>
        <meta charset="UTF-8">
        <title>attribute change</title>
    </head>
    <body>
        <img id="imgid" src="sad.jpeg">
        <button type="button" onclick="document.getElementById('imgid').src='happy.jpeg'">Happy</button>
        <button type="button" onclick="document.getElementById('imgid').src='sad.jpeg'">sad</button>
    </body>
</html>
Previous Topics
Previous lessons of current book.
Examples of Javascript 1
Best Lessons of "Javascript 1"
Top lessons which are viewed more times.
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
Examples of Javascript 1
  Copyright © 2014 Knowledge walls, All rights reserved
KnowledgeWalls
keep your tutorials and learnings with KnowledgeWalls. Don't lose your learnings hereafter. Save and revise it whenever required.
Click here for more details