Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Browser History
- From: javascript@xxxxxxxxxx (Harry Love)
- Subject: [Javascript] Browser History
- Date: Wed, 28 Aug 2002 09:02:40 -0700
-----Original Message----- From: javascript-admin@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx] On Behalf Of Cutter (javascript list) Sent: Wednesday, August 28, 2002 8:29 AM To: javascript Subject: [Javascript] Browser History 1) Is it possible to determine whether back or forward should exist? if back history exists then display back button if forward history exists then display forward button 2) Is it possible to determine whether a page has a background image? if bacground-image exists then perform some action Cutter ---------------------------- I haven't tested this, but could you say: if(document.history.go(-1)) { execute some code; } else if(document.history.go(1)) { execute some other code; } ??? I'm not sure about the second part, except to check for the presence of *any* images using document.images.length. Regards, Harry
- References:
- [Javascript] Browser History
- From: Cutter (javascript list)
- [Javascript] Browser History
- Prev by Date: [Javascript] Browser History
- Next by Date: [Javascript] Browser History
- Previous by thread: [Javascript] Browser History
- Next by thread: [Javascript] Browser History
- Index(es):