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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.