CODE (htmlphp):
скопировать код в буфер обмена
скопировать код в буфер обмена
- <html>
- <meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
- <title></title>
- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
- </head>
- <body>
- <script>
- var ScreenWidth = document.body.clientWidth;
- $.ajax({
- method: "POST",
- url: "width.php",
- data: { width: ScreenWidth }
- })
- .done(function( msg ) {
- alert( "Data Saved: " + msg );
- });
- </script>
- </body>
- </html>