We have function available to get the back/past url using: document.referrer, so is there any way or function to get the “forward” url?
I just want to know if the current page has back or forward links. I have searched lot into the history and history-session but they are very limited due to some security issues.
Is there any way to get the next url?
You cannot read the history object. There is no way for your script to know which URL the forward button will lead to, or if it is available at all.