The BR object represents an HTML <br> element.
You can access a <br> element by using getElementById():
You can create a <br> element by using the document.createElement() method:
Property | 説明 |
---|---|
clear | Not supported in HTML5. Use
style.clear instead. Sets or returns the flow of text around floating objects |
The BR object also supports the standard properties and events.
HTML reference: HTML <br> tag