ltbaggz Posted February 8, 2007 Share Posted February 8, 2007 recently took on a project, and i have a general development question. there is a menu being generated from a database, and menu objects are built based on the database information. there is a javascript function that pieces together the information and it creates a link like this parent.frames[2].location.replace(url + '.php' + Math.Random(1)); my question is why the math.Random, what advantages does this have? debugging? if anyone has thoughts on this i would appreciate it. Link to comment https://forums.phpfreaks.com/topic/37635-web-development-mathrandom-question/ Share on other sites More sharing options...
Jessica Posted February 8, 2007 Share Posted February 8, 2007 it's likely stop caching - but a more reliable method would be to use the current timestamp as it will never repeat. This is a javascript question, btw. Link to comment https://forums.phpfreaks.com/topic/37635-web-development-mathrandom-question/#findComment-180035 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.