Using JavaScript to edit CSS gradient
问题 I am working on editing CSS gradients through JavaScript in Firefox. I have input boxes where the user can put 1. Orientation 2. 1st Color 3. 2nd Color Here is the html <html> <head> <title>Linear Gradient Control</title> <script> function renderButton(){ var orientation = document.getElementById(\"firstValue\").value; var colorOne = document.getElementById(\"firstColor\").value; var colorTwo = document.getElementById(\"secondColor\").value; //alert(orientation); //alert(colorOne); //alert