PC SOFT

ONLINE HELP
FOR WINDEV, WEBDEV AND WINDEV MOBILE

Home | Sign in | English US
  • Overview
  • Operating mode
  • Notes
  • Implementation
  • Disabling the browser "Back" button for a specific page
  • Disabling the browser "Back" button for a frameset
  • Disabling the browser "Back" key for all the project pages
WINDEV
WindowsLinuxUniversal Windows 10 AppJavaReports and QueriesUser code (UMC)
WEBDEV
WindowsLinuxPHPWEBDEV - Browser code
WINDEV Mobile
AndroidAndroid Widget iPhone/iPadApple WatchUniversal Windows 10 AppWindows Mobile
Others
Stored procedures
Preventing from using the Back key
Overview
If the browser "Back" button is used to display the previous page, this action will have no effect.
Operating mode
Disabling the "Previous page" feature of the browser triggers the insertion of the following Javascript code into the generated HTML page:
<SCRIPT LANGUAGE="JavaScript">
history.forward()
</SCRIPT>
When running the page in a browser, it will not be possible to go back to this page by pressing the browser "Back" button.

Notes

  • This action will have no effect.
  • Clicking the browser "Back" button can make the page blink.
  • This mechanism can fail if the browser [STOP] button is clicked before the forward() statement is run by the browser.
Implementation

Disabling the browser "Back" button for a specific page

To disable the browser "Back" button for a specific page:
  1. Display the "Details" tab in the description window of the page ("Description" from the popup menu of the page).
  2. Check "Prevent from using the browser "Back" button to go back to this page".
  3. Validate.

Disabling the browser "Back" button for a frameset

To disable the browser "Back" button for a frameset:
  1. Display the "Details" tab in the description window of frameset ("Description" from the popup menu of frame)
  2. Check "Prevent from using the browser "Back" button to go back to this frameset".
  3. Validate.

Disabling the browser "Back" key for all the project pages

To disable the browser "Back" button for all project pages:
  1. Display the project description ("Project .. Project description").Display the project description: on the "Project" pane, in the "Project" group, click "Description".
  2. Check "Prevent from using the browser "Back" key to go back to the page".
  3. Validate. This option will be automatically taken into account for all new site pages.
Minimum required version
  • Version 9
Comments
Click [Add] to post a comment