Instead of using window.location = url;
to redirect,
try:
window.location.replace(url);
after using replace() the current page will not be saved in session
history, meaning the user won’t be able to use the Back button to
navigate to it.
More Related Contents:
- How to create a translucent in React Native?
- Write tags in HTML and print
- How to get an HTML element’s style values in javascript?
- Refresh/reload the content in Div using jquery/ajax
- Change :hover CSS properties with JavaScript
- Animate element to auto height with jQuery
- Prevent zoom cross-browser
- How can you figure out the highest z-index in your document?
- Force browser to trigger reflow while changing CSS
- How to ensure a form field is submitted when it is disabled?
- How to auto-scroll to end of div when data is added? [duplicate]
- Disable dragging an image from an HTML page
- javascript change background color on click [closed]
- How to reorder divs using flex box?
- Use a new CSS file to override current website’s
- CSS: Change parent on focus of child
- Possible to disable @media queries or force a resolution? Reason: Allow an iphone to see the desktop site?
- Check if element is between 30% and 60% of the viewport
- How to vertically align all text in CSS?
- Fade background image in and out with jQuery?
- DIV Vertical Scroll bar on left
- Convert dropdown to selection boxes with color and trigger drop down action
- CSS /JS to prevent dragging of ghost image?
- Setting the height of a DIV dynamically
- How do you swap DIVs on mouseover (jQuery)?
- Center an Image vertically and horizontally using CSS
- Change background on button click, using CSS only? [duplicate]
- Jquery/Javascript Opacity animation with scroll
- How to get a leaflet map canvas to have a 100% height?
- Can I save input from form to .txt in HTML, using JAVASCRIPT/jQuery, and then use it?