Avatar of jamie_lynn
jamie_lynn
 asked on

How do I know in Javascript if the browser is fowardable?

Hi,

How do I know in Javascript if the browser is fowardable?
ie. window.history.go(1) or window.history.forward() goes to the next page in session history.
How do I know if you can go forward w/o going forward?
so something like window.history.hasForward()?

Thanks
Jamie
JavaScript

Avatar of undefined
Last Comment
COBOLdinosaur

8/22/2022 - Mon
Dave Baldwin

This page http://www.w3schools.com/jsref/met_his_forward.asp says it is available in all major browsers.  It operates from the 'history list' in the browser.
jamie_lynn

ASKER
I understand that history.forward() is available. I want to know if history is forwardable. So something like history.hasForward().
ASKER CERTIFIED SOLUTION
COBOLdinosaur

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Dave Baldwin

I want to know if history is forwardable.

I don't know what that means.
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
COBOLdinosaur

Dave,
I think they want to know if the page they are on was access via the back button.

Cd&