You probably need an onload event that will reload the the initial content into the iframes. Since there are probably already other onload events associated with the page (I couldn't see any but, some scripts' code is not on the page), best to use this fairly good code at adding to onload events coupled with a function to set the sources we want:
Code:
<script type="text/javascript">
if ( typeof window.addEventListener != "undefined" )
window.addEventListener( "load", myInitFunction, false );
else if ( typeof window.attachEvent != "undefined" )
window.attachEvent( "onload", myInitFunction );
else {
if ( window.onload != null ) {
var oldOnload = window.onload;
window.onload = function ( e ) {
oldOnload( e );
myInitFunction();
};
}
else
window.onload = myInitFunction;
}
function myInitFunction(){
document.getElementById('tabiframe').src='http://bit-systems.com/featured_products/topsellers.htm'
document.getElementById('tab2iframe').src='http://bit-systems.com/featured_mfgs/grippinbillets.htm'
}
</script>
You can put this script anywhere on the page but, the head is the customary spot. Putting it as the last thing before the </body> tag would virtually insure it adds in our event as the very last onload event, perhaps a good thing, try the head first. There is a chance this will not have the desired effect, no matter where on the page it is. If it does not, we may need to get a little more aggressive and give each of the two iframes a unique name attribute and access their location using the frames collection. Try the above first and let me know.
Be positive that the old copy of the page is no longer cached when testing this added code.
Bookmarks