您将如何访问em
javascript 中标记的值?
这是我试图访问的元素:<em id='tag_IS_System_Agent'></em>
其中显示:约翰史密斯
我正在尝试通过 javascript 访问它:
document.getElementById("emailFrame").src
= "http://www.website.org/mail.php?cid="
+IS_ATTR_ID.value
+"&name="+document.write("<em id=\"tag_IS_System_Agent\"> <\/em>")
+"&em="+email;`
任何的想法?我知道这document.write("<em id=\"tag_IS_System_Agent\"> <\/em>")
是错误的,我很困惑,不知道该怎么做。