Buttons not working on mobile device

Buttons not working on mobile device

Hi,

I've been a long time trying to fix this and I'm sure it's something simple (which is what irritates me even more). I have a button that is used to retrieve data, it works fine on my laptop but on a mobile device it doesn't work.

I've tried this way:

  1. <button type="button" data-role="button" data-icon="refresh"  onclick="loadXMLDoc()">Generate</button>

Can anyone help?