文本框输入版面,登陆相应的板块。 < html > < script language = "JavaScript" > ... function ordinary()...{var board = document.getElementById("boardName").value;location.href = "http://www.newsmth.net/bbsdoc.php?board=" + board;}function uniformTitle()...{var board = document.getElementById("boardName").value;location.href = "http://www.newsmth.net/bbsdoc.php?board=" + board + "&ftype=6";} </ script > < td > 板块名称: < input id = "boardName" size = "10" >   < input type ="submit" onclick ="ordinary()" value = "普通模式" > < input type ="button" onclick ="uniformTitle()" value = "同一主题" > </ td > </ html > 属性submit保证,输入Enter后自动定位为它。现在有个疑问:target属性,让链接从新页面打开,怎么在js里设置?