iframes / javascript

andehlu

this modern love
Hi,
Im using a javascript function to populate my iframe with different files. The problem I am having is IF the file is already in the iframe and the button is clicked again...it will not relaod the document. Example: I have a bio section, it is already loaded into the iframe, I would like to have the bio section reload in the iframe if someone were to hit the bio button again.

this is the JS i am using, 'o' is passed to the function from the button:

document.getElementById('theiframe').src = o;

Thanks for your help.
 
Back
Top