CARA MENGANALISA LOKASI TERKAHIR FILE PHP DENGAN JAVASCRIPT

Assalamu'alaikum wr wb
Kali ini saya akan share bagaimana caranya melihat informasi lokasi terakhir dari file php kita.
Berikut ini syntaxnya.
________________
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
 <script type="text/javascript">
        function AnalyzeLocation () {
            var message = "";
            message += "hash: " + window.location.hash + "\n";
            message += "host: " + window.location.host + "\n";
            message += "hostname: " + window.location.hostname + "\n";
            message += "href: " + window.location.href + "\n";
            message += "pathname: " + window.location.pathname + "\n";
            message += "port: " + window.location.port + "\n";
            message += "protocol: " + window.location.protocol + "\n";
            message += "search: " + window.location.search + "\n";

            alert (message);
        }
    </script>
</head>

<body>
<button onclick="AnalyzeLocation ();">Analyze the current location of the document</button>
</body>
</html>
__________________
Semoga bermanfaat.
CARA MENGANALISA LOKASI TERKAHIR FILE PHP DENGAN JAVASCRIPT CARA MENGANALISA LOKASI TERKAHIR FILE PHP DENGAN JAVASCRIPT Reviewed by Syawaluddin Amin, S.Kom on Desember 30, 2013 Rating: 5

Tidak ada komentar:

Diberdayakan oleh Blogger.