<html> <body> <form id="form" action="d.html" method="post" accept-charset="utf-8"> <p><input type="submit" value="submit"></p> </form> <script type="text/javascript" charset="utf-8"> document.getElementById("form").submit(); </script> </body> </html>