Tech
Forums
Jobs
Books
Events
Videos
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Onclick property to img created inside JavaScript function
Mohith Kovela
7y
249
1
Reply
cell3.innerHTML = "<img src = 'Edit-icon.png' height='20' width='20' onClick = 'passValuesToInput("+id+");'>";
What is wrong with this line of code? Why the function is not being called and parameer is not being passed?
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Regarding javascript v8 engine and js OOPS
How browser understand javascript