all groups > dotnet jscript > may 2004 >
You're in the

dotnet jscript

group:

Back Button



Re: Back Button Marina
5/4/2004 11:36:51 AM
dotnet jscript: There is no way to do that, or to have a 100% full proof way of preventing
the user from going back.

[quoted text, click to view]

Back Button ruca
5/4/2004 4:26:35 PM
In some pages of my Web Application I need to "disable" the back button, and
for that I have this (that is not working), that is the solution found it in
the Internet:

<script language=javascript>
location.replace('myPage.aspx');
</script>

What do I have to do more?


--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

Re: Back Button Alex Papadimoulis
5/4/2004 5:01:11 PM
As another poster mentioned, there is no fool-proof way ... but here is a
technique I employ with a good amount of success:

<body onPageLoad="history.go(1)">

It's the equivelant of hitting the Forward button when a page loads, and
wont hit the server for either the Current or Previous page.

-- Alex Papadimoulis

[quoted text, click to view]

Re: Back Button Patrice
5/4/2004 5:41:28 PM
Why do you need to disable the back button ? I would try to solve the
problem caused by the back button rather than trying to disabling it because
it causes a problem (generally not easy if possible at all and the user
could always cut paste the previous URL and would get the same problem
etc...)


"ruca" <ruuca@iol.pt> a écrit dans le message de
news:%23kl%23vxeMEHA.1484@tk2msftngp13.phx.gbl...
[quoted text, click to view]

Re: Back Button ruca
5/5/2004 10:12:52 AM
Hi Alex,

<script language=javascript>
location.replace('myPage.aspx');
</script>

As I search in internet, many places talk about above method. So far as I
understand this replace the last page in History, and I think that if works
like this it was more useful for me. The problem it's that when I use it
nothing happens. Do you know?

Thanks anyway
Ruca


"Alex Papadimoulis" <alexp@papadimoulis.com> escreveu na mensagem
news:109g14m2a32f83c@corp.supernews.com...
[quoted text, click to view]

Re: Back Button ruca
5/5/2004 3:05:30 PM
Where should I put this code:
----------------------------------
[quoted text, click to view]

----------------------------------
to simulate the "disable" back button?

--
Programming ASP.NET with VB.NET
Thank's (if you try to help me)
Hope this help you (if I try to help you)
ruca

AddThis Social Bookmark Button