I've set up buttons for navigating to last and previous pages. For a quick jump to one of 103 pages, I could use a drop down box, but the result is a ridiculously long list.

It would be smarter and more user-friendly to have a text box into which the user could type any number from 1-103 and click a button in order to be sent directly to the relevant page (the sort of thing you see at the bottom of the Adobe reader, where you can type in a page number and be sent straight there).

I've been trying to find something that would do this, but have not really known what to look for.

Can you check for NaN directly like that in Javascript? In Java you need to use isNaN()...

jscheuer1

08-04-2005, 12:37 PM

Can you check for NaN directly like that in Javascript? In Java you need to use isNaN()...Not usually, I have no idea if it will work in this case (haven't tested it) but, probably not. All that test appears to do is compare the string "page" to the string "NaN". One shortcut is to do this: