Haven't done this in a while, but I think you can effectively disable
back by trapping the events.
Then you could put your own back button in the window, that goes to the
prior page & passes whatever info to the onload event
As I think about it, another way is to have a hidden frame with some
global js variables that indicate the status of the fields (initialized
by the initial page load & modified within the pages js).
Then, on a browser back, the onLoad could interrogate the globals and
reset the field status)
HTH
Dick
On Jul 19, 2004, at 7:42 AM, Stacy Young wrote:
> Something I've been meaning to address for ages that drives me nuts. No
> luck yet.
>
> When folks hit 'back' on their browsers, any HTML forms I have on
> previous pages that have disabled certain fields via _javascript_ are
> once
> again 'enabled' after that back button. Anyone know a trick to having
> something verify the fields are in their correct state at that point
> since the onload doesn't fire?
>
> Thanks!
> Stace
>
> <table width=800 cellpadding=4 cellspacing=10 border=0><tr
> bgcolor=BDBDBD><td valign=top width=400><font face=verdana size=2
> color=FFFFFF><b>AVIS IMPORTANT</b></font></td><td valign=top
> width=400><font face=verdana size=2
> color=FFFFFF><b>WARNING</b></font></td></tr><tr><td valign=top
> width=400><p align=justify><font face=verdana size=1 color=808080> Les
> informations contenues dans le present document et ses pieces jointes
> sont strictement confidentielles et reservees a l'usage de la (des)
> personne(s) a qui il est adresse. Si vous n'etes pas le destinataire,
> soyez avise que toute divulgation, distribution, copie, ou autre
> utilisation de ces informations est strictement prohibee. Si vous avez
> recu ce document par erreur, veuillez s'il vous plait communiquer
> immediatement avec l'expediteur et detruire ce document sans en faire
> de copie sous quelque forme.</td><td! valign=top width=400><p
> align=justify><font face=verdana size=1 color=808080> The information
> contained in this document and attachments is confidential and
> intended only for the person(s) named above. If you are not the
> intended recipient you are hereby notified that any disclosure,
> copying, distribution, or any other use of the information is strictly
> prohibited. If you have received this document by mistake, please
> notify the sender immediately and destroy this document and
> attachments without making any copy of any kind.</td></tr></table>
>
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
- OT: Javascript Prob Stacy Young
- Dick Applebaum