By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,963 Members | 1,815 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,963 IT Pros & Developers. It's quick & easy.

javascript:history detection

P: n/a
Im using some custom javascript:history.forward() &
javascript:history.back() image buttons on my application.

If there is no back or forward history, I would like to display a
dimmed(disabled look) image.

Is there a way to detect if there is no history in iether direction?

Thanks!

Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Jake wrote:
Im using some custom javascript:history.forward() &
javascript:history.back() image buttons on my application.
Why are you attempting to duplicate what is already built into the browser?
If there is no back or forward history, I would like to display a
dimmed(disabled look) image.
The browser already does that.
Is there a way to detect if there is no history in iether direction?
No.
Thanks!


Welcome

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #2

P: n/a

"Randy Webb" <Hi************@aol.com> wrote in message
news:Z_********************@comcast.com...
Jake wrote:
Im using some custom javascript:history.forward() &
javascript:history.back() image buttons on my application.
Why are you attempting to duplicate what is already built into the
browser?


Because the application runs in a browser window with only the title and
status bars (no toolbar)
If there is no back or forward history, I would like to display a
dimmed(disabled look) image.


The browser already does that.

See above.
Is there a way to detect if there is no history in iether direction?


No.


If the browser can do it - why cant it be done with javascript?
Thanks!


Welcome

--
Randy
comp.lang.javascript FAQ - http://jibbering.com/faq & newsgroup weekly


Jul 23 '05 #3

P: n/a
Lee
Jake said:
Is there a way to detect if there is no history in iether direction?


No.


If the browser can do it - why cant it be done with javascript?


The browser has access to lots of information that isn't available
to Javascript.

The browser is a trusted application that has to know (and can't
avoid knowing). On the other hand, code downloaded over the
internet should not be able to find out what, if anything, has
been going on in the same window.

Reconsider allowing access to the toolbar.

Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.