方式一:通過submit按鈕提交
<!DOCTYPE html> <html> <head> <title>通過submit按鈕提交</title> <meta charset="UTF-8"/> </head> <body> <form action="" method="get" id="form1"> <input type="text" name="username"></input> <input type="submit" value="提交" /> </form> </body> </html>
方式二:通過一般按鈕button提交
<!DOCTYPE html> <html> <head> <title>通過一般按鈕提交</title> <meta charset="UTF-8"/> </head> <body> <form action="" method="get" id="form1"> <input type="text" name="username"></input> <input type="button" value="ok" name="sb" onclick="submit1();"> </form> <script type="text/javascript"> function submit1() { var form1 = document.getElementById("form1"); form1.action = " bjpowernode.html"; form1.submit(); } </script> </body> </html>
方式三:通過超鏈接提交
<!DOCTYPE html> <html> <head> <title>通過超鏈接提交</title> <meta charset="UTF-8"/> </head> <body> <a href="bjpowernode.html?username=張三">通過超鏈接提交</a> </body> </html>
標(biāo)簽:晉中 眉山 北海 阜陽 河池 青海 崇左 營(yíng)口
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《HTML表單提交的幾種方式_動(dòng)力節(jié)點(diǎn)Java學(xué)院整理》,本文關(guān)鍵詞 HTML,表單,提交,的,幾種,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。