← Back to DOM domain
DOM.getBoxModel
Returns boxes for the given node.
Domain: DOM
stable
Parameters
| Name | Type | Description |
nodeId (optional) | NodeId | Identifier of the node. |
backendNodeId (optional) | BackendNodeId | Identifier of the backend node. |
objectId (optional) | Runtime.RemoteObjectId | JavaScript object id of the node wrapper. |
Returns
| Name | Type | Description |
model | BoxModel | Box model for the node. |
Example Request
{
"id": 1,
"method": "DOM.getBoxModel"
}
Example Response
{
"id": 1,
"result": {
"model": "model-value"
}
}
Usage in Node.js
const result = await send('DOM.getBoxModel');
console.log(result);
// {"model": "model-value"}