I have a page which uses scriptaculous to show a form. I'd like to add some way of showing the form if JavaScript is disabled. I was thinking I might be able to stop the user navigating away and instead call scriptaculous if JavaScript is enabled, but I have no idea how I'd do it.
To have the form appear when JavaScript is disabled, you can simply write out the form in the HTML. You can then hide it if JavaScript is disabled by having the form in a div, and hiding that div with JavaScript. I don't know how you'd be able to prevent the user from navigating away. (They hate that.)
Preventing the user from navigating away is a great way to prevent the user from visiting in the first place.