hi
I knew very little about javascript and I didn't used it before a lot but now I Have a problem that: I want the pages in my website to go only forward and disable going backward
I mean the user can not go back to the previews page in some pages
and I've been told that i can do that using javascript but I don't know how or using what .pleace help:'(

Recommended Answers

All 2 Replies

Don't want to do it. Let the user decide where he wants to go and what he wants to do.

hi
I knew very little about javascript and I didn't used it before a lot but now I Have a problem that: I want the pages in my website to go only forward and disable going backward
I mean the user can not go back to the previews page in some pages
and I've been told that i can do that using javascript but I don't know how or using what .pleace help:'(

use

location.replace("your new page")

on those certain pages instead of what you are currently using...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.