Disable Function as Event Handler BX24.unbind
If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.
The method BX24.unbind removes the function func from the event handlers for eventName on the page element element.
void BX24.unbind(DOMNode element, String eventName, Function func)
Parameters
Required parameters are marked with *
|
Name |
Description |
|
element* |
The HTML element on the page (DOM element) for which the handler needs to be removed |
|
eventName* |
The name of the event. For |
|
func* |
The handler function to be removed |
Code Example
How to Use Examples in Documentation
BX24.init(function () {
const button = document.getElementById('run-action');
function onClick() {
console.log('Button clicked');
}
BX24.bind(button, 'click', onClick);
BX24.unbind(button, 'click', onClick);
});
Response Handling
The method does not return data (void).
Continue Learning
- Set a Function as an Event Handler with BX24.bind
- Set Up the DOM Structure Readiness Handler BX24.ready
Copied