Press "Enter" to skip to content

Oracle Apex – On Button Click Open URL in a New Tab

In Oracle Apex, on button click, you want to open URL in a new tab. Here I am giving the example to perform this task using the Dynamic Action for a button.

Open URL in a New Tab on Button Click in Oracle Apex

Step-1: Create a button and set the properties highlighted in the below image:

Button properties in Oracle Apex.

Step-2: Now right click on the button you created and select Create Dynamic Action option. Then define the properties as shown in the below image:

Dynamic Action properties for a button.

As you can see in the above image that Action is set to Execute JavaScript Code and in the Code section, the following JavaScript code is written to open an URL in a New Tab on click of a button in Oracle Apex.'f?p=&APP_ID.:2:&APP_SESSION.','_blank');

The above JavaScript code will open the Page number 2 in the same application into a new tab window. Now save the changes and test.

You can use any URL here to open it in the new tab.

See also:

Have you found the answer to your question? If not, you can discuss it with me in the comments section below or join my Q&A community for developers and ask your question. It is FREE.

Vinish Kapoor


Hi, I am a full stack developer and writing about development. I document everything I learn and help thousands of people. is created, written, and maintained by me; it is built on WordPress, and hosted by Bluehost. Connect with me on Facebook, Twitter, GitHub, and get notifications for new posts.

Newest Most Voted
Inline Feedbacks
View all comments