moveBefore()
Limited availability
The moveBefore()
DOM method relocates a node while preserving its state. For example, you can move the active element without losing focus, move an animated element without resetting the animation, or move an iframe without reloading its content.
Learning resources on MDN
Browser support
- Chrome 133 Released on 2025-02-04
- Chrome Android 133 Released on 2025-02-04
- Edge 133 Released on 2025-02-06
- Firefox ❌
- Firefox for Android ❌
- Safari ❌
- Safari on iOS ❌
Usage (according to Chrome Platform Status)
~0.001% of page loads. More data at chromestatus.
Specifications
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature