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

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

Jump to Post

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 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.