471,593 Members | 1,258 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,593 software developers and data experts.

javascript:history detection

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
3 2940
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

"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
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.

Similar topics

2 posts views Thread by Vinnie | last post: by
1 post views Thread by Tharnack | last post: by
23 posts views Thread by Andrew Thompson | last post: by
4 posts views Thread by Ike | last post: by
5 posts views Thread by Olly | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by Anwar ali | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.