Accessing History Object

[Total: 0    Average: 0/5]

This file shows how to use Netscape to ask for special security access.

Body Code:

<script type=text/javascript>
function doIt()
{
 var _p1 = '"historyWindow","width=500,height=300,menubar,resizable"';
 var w=window.open("",_p1);
 var d=w.document;
 netscape.security.PrivilegeManager.enablePrivilege("UniversalBrowserRead");
 for(var i=0;i<history.length;i++)
 {
   d.write('<a target="new" href="'+history[i]+'">');
   d.write(history[i]);
   d.writeln('</a>');
 }
 d.close();
 return w;
}
doIt()
</script>

Times Viewed: 1

Leave a Reply

Your email address will not be published. Required fields are marked *