Skip to content
Advertisement

‘showPDF’ is declared but its value is never read

some background information: i have a button in my html file that should activate the showPDF function but it tells me that its value is never read

picture of the error message

javascript:

JavaScript

the button in my html looks like this:

JavaScript

help would be greatly appreciated as i can’t seem to find any answers in different questions

Advertisement

Answer

You just need to remove the duplication of the showPDF function. you don’t need the inner one.

JavaScript
User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement