Is there a way to navigate from page to page in javascript while the user is using the application cache offline? Currently, while the user is online i use:

document.documentForm.action = "Index.html";
In this case there are more than one actions within the current form so the form, onsubmit, loads a javascript function which receives the value of the button pressed. This way i can check the value of the button that was used to determine the scripts actions appropriately.

Any suggestions to get this to work would be greatly appreciated.