Forum Discussion
The window.print() method is not working in the Rise code block.
Hi Nandhakumar_S,
Thanks for sharing your code example! In Rise 360, the Code Block (Beta) can run HTML, CSS, and JavaScript inside its own self-contained environment, but it’s sandboxed for security and stability. That means it can’t access global browser features like window.print() or interact with the rest of the Rise course.
If you’d like learners to actually trigger printing or other browser actions, the best workaround would be to embed the interaction in a Storyline block and then add that Storyline course to Rise. Storyline gives you full control over JavaScript execution and can access browser functions as expected.
Here’s more detail in our documentation about how the Code Block works: Rise 360: How to Use the Code Block (Beta)
Hope this helps clarify how Code Blocks work in Rise! If you find a creative workaround, feel free to let the community know.
Related Content
- 8 months ago
- 11 months ago
- 8 months ago
- 9 months ago