React with Redux Certification Training
- 5k Enrolled Learners
- Live Class
This function is designed to execute code when users interact with the HTML elements. It can be applied to any HTML element.
The Script to be run
Supported HTML tags: All HTML elements, EXCEPT: <base>, <bdo>, <br>, <head>, <html>, <iframe>, <meta>, <param>, <script>, <style>, and <title>
<DOCTYPE html Field1: input type="text" id="field1" value="Hello World!"; Field2: input type="text" id="field2" button onclick="myFunction()"Copy Textbutton>
A function is triggered when the button is clicked. The function copies the text from Field1 into Field2.
This is where you should have your image source as well.
This brings us to the end of this article. You may check out the Web Development Certification Trainingby Edureka. Web Development Certification Training will help you learn how to create impressive websites using HTML5, CSS3, Twitter Bootstrap 3, jQuery and Google APIs and deploy it to Amazon Simple Storage Service(S3).
Got a question for us? Please mention it in the comments section of article and we will get back to you.