var e = document.createElement("<input type=hidden name='meizz'>");
document.formName.insertAdjacentElement("afterBefore", e);
document.formName.insertAdjacentElement("afterBefore", e);
解决方案 »
- 如何得到未设定宽度的<DIV>真实的width
- 求教消息发送功能需求的解决方案
- 字符串过滤排序的函数
- 求日期格式的转换:读取的日期格式默认为 "2008-10-12 下午 03:00:00",我该如何设置为"2008-10-12 15:00:00"格式?
- 可以动态添加function里面的内容的吗?
- 请高手帮忙看下这段代码
- 大家看一下我的代码!不知道错在哪里???
- 关于chromeless的问题?
- 瀑布流网页类似于淘宝商品详情页怎么加载完全
- 在线等,JS计算工作日差不算周末
- 哪个函数是取得SQL记录个数的?
- onClick="document.execCommand('SaveAs') 不能保存图片,应该怎么写可以保存图片呢?!
document.formID.insertAdjacentHTML("BeforeEnd", shtml);
ParameterssWhere Required. String that specifies where to insert the HTML text, using one of the following values: beforeBegin Inserts sText immediately before the object.
afterBegin Inserts sText after the start of the object but before all other content in the object.
beforeEnd Inserts sText immediately before the end of the object but after all other content in the object.
afterEnd Inserts sText immediately after the end of the object.
sText Required. String that specifies the HTML text to insert. The string can be a combination of text and HTML tags. This must be well-formed, valid HTML or this method will fail.
<!--
var e = document.createElement("<input type=hidden name='meizz'>");
document.formName.insertAdjacentElement("BeforeBegin", e);
-->
</script>