faqts : Computers : Programming : Languages : JavaScript : Windows

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

10 of 11 people (91%) answered Yes
Recently 5 of 6 people (83%) answered Yes

Entry

How can I get a complete list of URLS in History()?

Jan 12th, 2001 09:14
Juergen Thelen, jsWalter,


Afaik this is only possible with NN4 (not checked NN6 yet).
One way to access the NN4 history object is to ask for the 
UniversalBrowserRead privilege. Example:
  netscape.security.PrivilegeManager.enablePrivilege
("UniversalBrowserRead");
  alert(history.length);
  alert(history[0]);
  document.writeln(history);
Another way is to use signed scripts. If you're not yet familiar with 
Netscapes signing procedures, have a look at this:
  http://developer.netscape.com/software/signedobj/jarpack.html
IE4/5 does not allow access to the history object due to security and 
privacy reasons (protecting user from being sniffed and spammed)...
Hth, Juergen