规定form表单提交的页面打开方式
在实际应用中,可能有这样的需要,那就是提交表单之后,要求以某一种方式打开接收数据的页面。 下面就通过代码实例做一下简单介绍。 代码如下: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 <!DOCTYPE html> < html > < head > < meta charset = "utf-8" > < meta name = "author" content = "http://www.softwhy.com/" /> < title >蚂蚁部落</ title > < script type = "text/javascript" > function sub() { document.forms[0].elements[0].disabled = true; document.forms[0].submit(); } window.onload=function(){ va...