# Using window.open in pre-request Script

**URL:** <https://community.postman.com/t/using-window-open-in-pre-request-script/9237>\
**Category:** Help Hub\
**Tags:** pre-request-script\
**Created:** [November 26, 2019, 12:24am UTC](https://community.postman.com/t/using-window-open-in-pre-request-script/9237 "2019-11-26T00:24:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pal.sandeep2014](https://avatars.discourse-cdn.com/v4/letter/p/ea666f/32.png) [@pal.sandeep2014](https://community.postman.com/u/pal.sandeep2014)\
**Post date:** [November 26, 2019, 12:24am UTC](https://community.postman.com/t/using-window-open-in-pre-request-script/9237/1 "2019-11-26T00:24:47Z")

</div>

Hi,  
I’m using postman to test the api calls to bamboo apis. I’m trying to run the bamboo build and test the bamboo variables.  
Well its working fine, but I had to go to bamboo and open the current build to check if its kicked of or not.  
I tried to open the build URL in chrome browser using “window.open()” in the Pre-request Script, but it throws error “window is not defined”.  
I need help with as I tried to google it and I could find any supportive article.  
Thanks  
Sandeep

---

<div class="post-metadata">

**Author:** ![danny-dainton](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/danny-dainton/32/29401_2.png) [@danny-dainton](https://community.postman.com/u/danny-dainton)\
**Post date:** [April 30, 2025, 2:26pm UTC](https://community.postman.com/t/using-window-open-in-pre-request-script/9237/2 "2025-04-30T14:26:11Z")

</div>

Closed on April 30, 2025, 2:26pm UTC


