perjantai 12. lokakuuta 2007

What is my current URL?

<script language="Javascript">
function x(){
var a;
a=window.location.href;
a=a.replace('file:///','');
//document.getElementById('MyLoc').innerHTML=a;
//document.write(a);
}
</script>
<!-- if used innerHTML
<body onload="x();">
<span id="MyLoc">!!!</span>
else
<body>
-->

Ei kommentteja: