I'm trying to set the SelectedImageUrl on a node from javascript but haven't been able to find the right method call to do it.

I've tried:

node.setSelectedImageUrl('images/someimage.png');

and

node.setAttribute('SelectedImageUrl', 'images/someimage.png')

But neither of those work.

Is there another method call that I'm missing?