javascript print

Hello,
I have a container app that has 6 widgets. My goal is to have the user be able to selectively print some or all of the widgets.
So I have a javascript method that for testing is simply :

window.frames[“id-iframe-widget24”].print();

I call this javascript from another widget.

I’ve done a window.alert and the it attempts to run the javascript, but the print dialog does not come up.

“id-iframe-widget24” is the ID of one of the widgets. Any ideas why it’s not working?
Thanks