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
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

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.
Avatar of jamie_lynn
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
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
Avatar of Dave Baldwin
Dave Baldwin
Flag of United States of America image

I want to know if history is forwardable.

I don't know what that means.
Avatar of COBOLdinosaur
COBOLdinosaur
Flag of Canada image

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

Cd&
JavaScript
JavaScript

JavaScript is a dynamic, object-based language commonly used for client-side scripting in web browsers. Recently, server side JavaScript frameworks have also emerged. JavaScript runs on nearly every operating system and in almost every mainstream web browser.

127K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo