HTML DOM Strong 对象

Strong 对象

Strong 对象代表 HTML <strong> 元素。

访问 Strong 对象

您可以使用 getElementById() 访问 <strong> 元素:

var x = document.getElementById("myStrong");

亲自试一试

创建 Strong 对象

您可以使用 document.createElement() 创建 <strong> 元素:

var x = document.createElement("STRONG");

亲自试一试

标准属性和事件

Strong 对象支持标准属性事件