Return the quotes property: - Javascript CSS Style Property

Javascript examples for CSS Style Property:quotes

Description

Return the quotes property:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

<p><q id="myQ" style="quotes:'\00ab' '\00bb';">This is a quote.</q></p>

<button type="button" onclick="myFunction()">Return quotation marks</button>

<script>
function myFunction() {/*from ww  w .  ja va2s. co  m*/
    console.log(document.getElementById("myQ").style.quotes);
}
</script>

</body>
</html>

Related Tutorials