OwnZ! StyLe
  Script Örnekleri 4
 
Client X-Y

Ekranta Tıklanılan yerin x-y koordinatlarını verir

<html>
<head>
<script type="text/javascript">
function coords(event)
{
x=event.clientX
y=event.clientY
alert("X coords: " + x + ", Y coords: " + y)
}
</script>
</head>
<body onmousedown="coords(event)">
Ekranda Bir Yerde Tıklayınız
</body>
</html>

 


Replace

window.location.replace->geri gön butonunu pasif yapar.
document.write(document.URL)->sayfanın adresini alır


<html>
<head>
<script type="text/javascript">
function replaceDoc()
{
window.location.replace("http://www.deu.edu.tr")
}
</script>
</head>
<body>
<input type="button" value="replace" onclick="replaceDoc()" />
<a href="URL.html">tıkla ve ilerle</a>
</body>
</html>

URL.html
<html>
<body>
<script type="text/javascript">
document.write(document.URL)
</script>
</body>
</html>
   


 
  25 ziyaretçi bugün sitemizi ziyaret etti! ( kişi Çevrimiçi )  
 
Bu web sitesi ücretsiz olarak Bedava-Sitem.com ile oluşturulmuştur. Siz de kendi web sitenizi kurmak ister misiniz?
Ücretsiz kaydol