SyntaxFix
Write A Post
Hire A Developer
Questions
Even it is not a good way of doing what you want try this hint: var url = MUST BE A NUMER FIRST
function nextImage (){ url = url + 1; location.href='http://mywebsite.com/' + url+'.html'; }