The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript How To Change An Iframes Src On Click Reply To: How To Change An Iframes Src On Click

Stuart Bennett

hi there

none of the code on any of my sites pages mention x frame in any way shape or form.

the page to be displayed in the iframe is on the same site as the contact us page itself even in the same folder i have total access to the domain.

i am hosting with heart internet but they do support iframes as if you go to which is the site i am having this issue on note the social icons at the top of each page they are on a page called social media.html in the root of the site and displayed in the top of every page using an iframe and that iframe gives me no trouble

yet the technique your using with javascript and an iframe doesn’t appear to work so i have no idea what is going on.