Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
36
rated 0 times [  41] [ 5]  / answers: 1 / hits: 45363  / 15 Years ago, wed, november 25, 2009, 12:00:00

How can I set the -moz-border-radius with pure JavaScript (no jQuery, no plugins etc)?



document.getElementById('id')

More From » javascript

 Answers
115

Try:



document.getElementById('id').style.borderRadius = '1em'; // w3c
document.getElementById('id').style.MozBorderRadius = '1em'; // mozilla


But why not do it in a stylesheet?


[#98220] Monday, November 23, 2009, 15 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
loganl

Total Points: 424
Total Questions: 86
Total Answers: 112

Location: Zimbabwe
Member since Thu, Jul 21, 2022
2 Years ago
;