Javascript examples for jQuery Method and Property:post
Transfer data Javascript to PHP
<html> <head> <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.4.min.js"> <script type="text/javascript"> if(confirm("click ok!")) {//from w w w.j a v a2s .c om $.post("myphpfile.php", {data: "ok"}) .done(function(data) { console.log(data); }); } </script> </head> <body> </body> </html>