Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

No, the onresize attribute is used to define a script that will run when an element is resized, and cannot be used to set the id attribute of an element. The id attribute can only be set through HTML or JavaScript code, but not through event attributes like onresize.