Skip to content

Problem with Print onload page #13354

Answered by ConorWebb96
jjhhrj asked this question in Help
Discussion options

You must be logged in to vote

Hey @jjhhrj,

Automations are a backend feature.

The window.print() function is a JavaScript function that is typically used in frontend environments, such as web browsers, to open the print dialog box and allow the user to print the current page. It is part of the Web APIs provided by web browsers.

In a backend Node.js environment, there is no window object because Node.js runs JavaScript code outside of a browser context. Node.js is typically used for server-side scripting rather than client-side scripting. Therefore, functions like window.print() won't work in a Node.js environment because there is no browser to interact with.

If you need to generate printable content in a Node.js envir…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jjhhrj
Comment options

Answer selected by ConorWebb96
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants