diff --git a/docs/tutorial/desktop-environment-integration.md b/docs/tutorial/desktop-environment-integration.md
index e430cb4235d9..ab84681609e1 100644
--- a/docs/tutorial/desktop-environment-integration.md
+++ b/docs/tutorial/desktop-environment-integration.md
@@ -329,11 +329,14 @@ app, you need to call `webContents.startDrag(item)` API on `ondragstart` event.
In web page:
-```javascript
-document.getElementById('targetItem').ondragstart = (event) => {
- event.preventDefault()
- ipcRenderer.send('ondragstart', '/path/to/item')
-}
+```html
+item
+
```
In the main process: