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

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -