Number of pages in a browser's session history

L

Lukketto

Hi guys,
is there a way (using javascript) to determine the number of pages in a
browser's session history?
I knew that Internet Explorer 6.0 and Mozilla Firefox differ in their
definitions for this value, is it right?

Thanks! ;)
 
R

ranchc

Hi Lukketto,

Type this in the browser's address bar:

javascript:alert(history.length)


and you wll get the answer in a popup alert.

Ranch
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top