No, this is not possible. src
is an attribute and it does not change.
More Related Contents:
- How to stop event propagation with inline onclick attribute?
- document.createElement(“script”) synchronously
- When does reflow happen in a DOM environment?
- Firing event on DOM attribute change
- How to expose IFrame’s DOM using jQuery?
- How can I simulate a click to an anchor tag?
- How To Wrap / Surround Highlighted Text With An Element
- Finding line-wraps
- How to get the element clicked (for the whole document)?
- Browser-independent way to detect when image has been loaded
- Check if option is selected with jQuery, if not select a default
- Select all elements with a “data-xxx” attribute without using jQuery
- DOM refresh on long running function
- Get selected text position and place an element next to it
- How do I monitor the DOM for changes?
- change html text from link with jquery
- Wait for iframe to load in JavaScript
- Why does getElementById not work on elements inside the document element? [duplicate]
- Jquery Event Not Triggering for DOM Elements Created after page load [duplicate]
- Does HTML Hidden control have any events? Like onchange or something?
- Add a link stylesheet dynamically in the [closed]
- How to inherit from the DOM element class
- for each element type in body
- What is the difference between node.nextSibling and ChildNode.nextElementSibling?
- DOM Mutation event in JQuery or vanilla Javascript
- Trying to set a span element equal to a variable value in a JS Rock, Paper, Scissors Game
- Javascript: Let user select an HTML element like Firebug?
- Why does
- jQuery difference between :eq() and :nth-child()
- What’s the most concise cross-browser way to access an element’s window and document?