javascript - Add random numbers to html -
i add iframe web everytime cache url best option me everytime make link
http://example.com/ex.html?randomnumbers http://example.com/ex.html?123o8173oy12389 so not cached how can add example math.random(); url try doesnt work
<iframe id='iframe2' src="http://example.com/ex.html?<script>math.random();</script>" frameborder="0" style="overflow: hidden; height: 100%; width: 100%; position: absolute;"></iframe> (i can not use php)
function geturl() { return "http://example.com/ex.html?rnd=" + new date().gettime(); } using
<iframe id='iframe2' src="javascript:top.geturl()" frameborder="0" style="overflow: hidden; height: 100%; width: 100%; position: absolute;"></iframe> i cannot test here since blocks on same origin policy when testing
Comments
Post a Comment