473,837 Members | 1,493 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

javascript:hist ory detection

Im using some custom javascript:hist ory.forward() &
javascript:hist ory.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 3064
Jake wrote:
Im using some custom javascript:hist ory.forward() &
javascript:hist ory.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.javas cript FAQ - http://jibbering.com/faq & newsgroup weekly
Jul 23 '05 #2

"Randy Webb" <Hi************ @aol.com> wrote in message
news:Z_******** ************@co mcast.com...
Jake wrote:
Im using some custom javascript:hist ory.forward() &
javascript:hist ory.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.javas cript 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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
2036
by: christian9997 | last post by:
Hi We have started off using a $_GET parameter to keep track of the user's browser: We detect what browser the visitor is using when he first arrives on our website then we do a redirect to the same page adding on "&browser=IE" or "&browser=DOM" at the end of the url (and we keep the browser parameter in the URL the whole time he is on the website), this enables us to use the following PHP method:
15
7315
by: Peter Bremer | last post by:
Hi all, I've written this little piece of code, which doesn't seem to work in Mozilla 1.5. I haven't tried it on other Gecko browsers, but I've found some indication that Netscape 6+ has the same problem. Internet Explorer 6 and Opera 7 have no problems with it. <!DOCTYPE html PUBLIC '-//W3C//DTD XHTML 1.1//EN' 'http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd'> <script>document.write (window.history.length);</script>
1
3361
by: ripken95 | last post by:
I connect to the internet through ADSL. I want to write the web page which can detect the connection status with javascript. This detection is like the signal detection in the mobile phone. If the signal is weak, the status may have one squares or zero on the phone. How could I do if I want to detect the status of the network? Thx and Best Regards.
2
1473
by: Vinnie | last post by:
Is it possible to redirect a user dependent on the domain of the last web page viewed? For example, if the user came from "thisdomain.com", I want to redirect them back to this page. But, if the user came from "otherdomain.com", I want to direct them to a different page in "thisdomain.com." So, there would have to be a way to retrieve the URL of the previous page viewed. Information on Microsoft's web page says it is not possible to...
1
1224
by: Tharnack | last post by:
Hi, I have some html code i would like to be printed to the page only if the browser has javascript enabled. I have tried to use document.writeln() but the string i want to print bot contains some ' and " in it. I don't know how to set the delimiters of the string that is passed as argument so that i don't get an error in the page.
23
2295
by: Andrew Thompson | last post by:
This is intended to fix a long standing (cough)Java(cough) problem with which I'm sure some of you will be familiar. Sun recommends using the <OBJECT>/<EMBED> elements to cater for Java applets, but then uses *browser* *sniffing* Javascript to select between them. I was hoping to find/create a script that
4
13605
by: Ike | last post by:
Can someone show me how I can have: <a href="javascript:history.back()" name="Back" value="Back" style=width:40px;float:right;margin-left:0px class="button" >Back</a> but since this href exists in a frame, it only pertains to this frame? Thanks, Ike
5
2770
by: Olly | last post by:
Hello Group: I'd be grateful to anyone who can help me with Javascript form. :-) I want users to submit a web form, but to stop the form submission if any of my text fields contain specific value (e.g. "http"). I incorporated "http" detection bits of script into my existing function (only for one of my fields for now ), but for some reason this script doesn' work, probably, because of the wrong syntax. =============
3
1677
Bob Ross
by: Bob Ross | last post by:
I am trying to create a kind of back button for one my pop up pages. I am just using history.go(-1) for the button. I would like to only make the button visible when the user can go back. the trouble is the hostory.length increases even if the user does go back (when actually there is one less page the user can go back to). Anyone know a way I can get the true amount of pages a user can go back to? Or another way hide a button when a...
0
9682
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10881
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9406
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7004
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5670
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5850
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4475
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4043
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3126
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.