Im trying to create an iphone app
For some reason, it only seems to work in Chrome/Safari and iOs simulator.

How do I use javascript, like onclick, to make it so when I click a name, it calls like "firstName" + ".html" to get the page for the name selected.

for example if i click on bob, it slides over to a bob.html page that I create.

Is this the way i should be doing it or is there a better way? *

* I found another way to do it with jQuery Mobile,, but with this way, I can get it to go the the firstName.html page, but cannot get the dividers to work like iPhone contact list where letter divider stays at top til moved by another letter.

Any ideas?

Thanks so much in advance.