[Javascript] Browser History
Harry Love
hlove at u.washington.edu
Wed Aug 28 11:02:40 CDT 2002
-----Original Message-----
From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]
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
More information about the Javascript
mailing list