|
Heel veel page informatie
dit geeft allemaal page informatie en nog wat informatie over de client computer
<SCRIPT type="text/javascript">
var nra = document.anchors.length
document.write("<br>Number of<span> HREF's </span>on this page : <B>" + nra + "</B>." )
var nrf = document.forms.length
document.write("<br>Number of<span> FORM's </span>on this page : <B>" + nrf + "</B>." )
var nrl = document.links.length
document.write("<br>Number of<span> LINKS </span>on this page : <B>" + nrl + "</B>." )
var an = navigator.appName;
var av = navigator.appVersion;
var acn = navigator.appCodeName;
var ua = navigator.userAgent;
document.write("<br><br>You are using <B><span> " +an+ " </span></B>, version " +av+ ".<BR>Its code name is<span> " +acn+
" </span>, and sends the header " +ua+ "." );
var h = history.length;
document.write("<br>You have<span> visited " +h+ " pages </span>before this one.")
var hst = location.host
document.write("<br>The name of this location is <B><span> " + hst + " </span></B>." )
var hstn = location.hostname
document.write("<br>The name of this location is <B><span> " + hstn + " </span></B>." )
//var nrc = document.cookie
//document.write("<br>Cookie text file : <B>" + nrc + "</B>." )
var bgc = document.bgColor
document.write("<br><br>Your<span> background </span>color is <B>" + bgc + "</B>." )
var fgc = document.fgColor
document.write("<br>Your<span> foreground </span>color is <B>" + bgc + "</B>." )
var lc = document.linkColor
document.write("<br>Your<span> link </span>color is <B>" + lc + "</B>." )
var alc = document.alinkColor
document.write("<br>Your<span> active link </span>color is <B>" + alc + "</B>." )
var vlc = document.vlinkColor
document.write("<br>Your<span> visited link </span>color is <B>" + vlc + "</B>." )
var loc = document.location
document.write("<br><br>This is the<span> current URL </span>: <B>" + loc + "</B>." )
var ref = document.referrer
document.write("<br>This is your<span> referrer URL </span>: <B>" + ref + "</B>." )
var tit = document.title
document.write("<br>This is the<span> title </span>of this page : <B>" + tit + "</B>." )
var lmd = document.lastModified
document.write("<br>Last update : <B><span> " + lmd + " </span></B>." )
datum = new Date();
document.write("<br>Today's date is : <b><span> " +(datum.getMonth()+1)+ "-" + datum.getDate() + "-" + datum.getFullYear()
+ " </span></b>.")
document.write("<br>You entered this Web Page at exactly <b>:<span> " + datum.getHours() +":" + datum.getMinutes() + ":"+
datum.getSeconds() +" </span> seconds.</b>")
</SCRIPT>
download het script
Zie hier een demo van het script
Reacties van leden
|