Hi I did a search but didn’t get this so sorry if I double posted.
I’m calling an external quote.js file for a random quote which is basic code as follows:
var quotes=new Array()
quotes[0]=’something’
quotes[1]=’something else’
(etc until)
var whichquote=Math.floor(Math.random()*(quotes.length))
document.write(quotes[whichquote])
Simple enough. What I want to do is call the external file every two minutes (without refreshing the page)or change the file itself so I get a random quote every two minutes. What do I have to do to the .js file and/or the call function to get this to happen?
Sorry if it’s obvious stuff I’m kind of new at this.
Thank you for your help