Jan 16, 2019 · The function will be passed either 'blue' or 'pink' as its parameters, depending on which button is clicked. The words "blue" and "pink" correspond to the title attribute for the link elements referencing the style sheets. JavaScript Function to Change Style Sheets. The actual JavaScript code needed to implement CSS style switching can be found ... JavaScript Switch. The JavaScript switch statement is used to execute one code from multiple expressions. It is just like else if statement that we have learned in previous page. But it is convenient than if..else..if because it can be used with numbers, characters etc. The signature of JavaScript switch statement is given below.

Jan 16, 2019 · The function will be passed either 'blue' or 'pink' as its parameters, depending on which button is clicked. The words "blue" and "pink" correspond to the title attribute for the link elements referencing the style sheets. JavaScript Function to Change Style Sheets. The actual JavaScript code needed to implement CSS style switching can be found ...