Can I change the src
of an iframe by any value? Is this possible?
document.getElementById('idIframe').src = "www.google.com"
Can I change the src
of an iframe by any value? Is this possible?
document.getElementById('idIframe').src = "www.google.com"
How are you doing is correct. You have to keep in mind two things:
src
must be a valid url. Either you place a relative url (as in the example I gave) or you put a full address with http://
Example: link