Launch new browser window or popup from a script?

Part of the workflow I’m trying to build is to book hotel accommodation. Ideally, once the script reaches a certain point, I would like to launch a new browser window or popup - passing url parameters to a hotel booking site. The user will then select the accommodation within the booking site, which will show them a booking reference number. The user will copy this to the clipboard, close the window and return to the script, pasting the booking reference into the field waiting for input.

Hoping this can be done easily?

2 Likes

Interesting use case! It’s not currently possible to automatically open a new browser window, but you could show a link that the user can click, e.g.

output.markdown(`[Click here to book a trip](https://expedia.com)`)
1 Like

Hello Kasra, I had a similar question as Bruce where I want to open a window or redirect the user to a url when a button is clicked in the scripting block. Is the markdown still the only way to do this?