05-28-2012, 01:41 AM
Incearca ceva de genu:
PHP Code:
<script>
var check = 0;
if(window.location == 'http://example.net/')
{
check = 1;
}
if(window.location == 'http://example.net/index.php')
{
check = 1;
}
if(check == 1){
alert("suntem pe index");
}else{
alert("nu suntem pe index");
}
</script>

