Is this possible? And if so, how?¨
Is it possible to setAttribute onclick=myFunction() with a variable as parameter?

```
var variableCross = localStorage.getItem('cross'+localStorage.getItem('number'));
del.setAttribute("onClick","myFunction(variableCross);");

```

myFunction(variableCross); sends variable like a string? doesn't it?

thx