Oggetto HTML DOM BR
Oggetto BR
L'oggetto BR rappresenta un elemento HTML <br>.
Accedi a un oggetto BR
Puoi accedere a un elemento <br> usando getElementById():
Esempio
var x = document.getElementById("myBR");
Crea un oggetto BR
Puoi creare un elemento <br> usando il metodo document.createElement():
Esempio
var x = document.createElement("BR");
Proprietà dell'oggetto BR
Property | Description |
---|---|
clear | Not supported in HTML5. Use style.clear instead. Sets or returns the flow of text around floating objects |
Proprietà ed eventi standard
L'oggetto BR supporta anche le proprietà e gli eventi standard .
Pagine correlate
Riferimento HTML: tag HTML <br>