Here i posted the code i made for prevent cache reload on an iframe, my question is about the fact that i don't want to see in the fiddler traffic the random parameters when i call the function(/PrimiPassi/Pages/Slave1.html?t=,0.093708817521646) but at the same time i need to report every time i click on it the 200 status of the page inside the iframe.
There is some solution using javascript? I know it's a stupid question but i don't have so much experience.
function newSite() {
var sites = ['http://ift.tt/1nIyq8J' + '?t=']
var mate = Math.random();
var res = sites.concat(mate);
document.getElementById('myIframe').src = res;
debugger;
}
<input type="button" value="Change site" onClick="newSite()" />
<iframe id="myIframe" src="about:blank" width="800"></iframe>
Aucun commentaire:
Enregistrer un commentaire