George Hester wrote:
> A user comes to the site and is presened with a Logon page. They enter the correct info in the
> form and they are in. I am doing it like this:
>
> <head>
> <script type="text/javascript">
> function form_onsubmit(){
> window.location.replace('/yourin.asp');
> return true;
return false;
> }
> </script>
> </head>
> <!-- -->
> <form method="post" name="frmLogon" id="frmLogon">
<form onsubmit="return form_onsubmit()".......>
> <input type="submit" ...>
> <input type="reset" ... >
> </form>
> <!-- -->
> <script type="text/javascript">
> document.forms('frmLogon').onsubmit = form_onsubmit;
> </script>
Get rid of that garbage script above.
> <!-- -->
>
> The idea was to remove the history.
Leave my history alone. But anyone that wants in your site can get in
directly. You are aware of that, right?
> In other words to not allow Back to be used to return to
> the logon page. This doesn't work the back in history is
> still available. Any suggestions how it can be done? Thanks.
Yes, and a more reliable way. Have the form submit to itself, and
redirect accordingly. All it takes now is to view source and go directly
to yourin.asp
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq