473,715 Members | 3,751 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 3056
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
2031
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
7303
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
3353
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
1469
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
1221
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
2279
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
13599
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
2761
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
1670
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
9340
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
9196
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9103
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9047
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7973
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
5967
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
4477
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...
1
3175
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
2539
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.