Requirement: Let us assume, we have Page 1 (Home page), and Page 2 (Sample Page). On the Sample Page, I have a button with the name as “Click to Open Home Page in New Tab“.
The moment user clicks on the “Click to Open Home Page in New Tab” button it should open Home Page in the New Tab of the same browser.
Solution: For solution of the above requirement follow the steps as shown below:
Step 1: Let us create two pages, Page 1 (Home), and Page 2 (Sample Page) a shown below.
Step 2: On the Sample Page, create a Region inside a page and set the Title as On Button click open page in a new Tab
Step 3: Create a button inside the Region and set the below properties for the button.
- Name: P2_OPEN_PG_NEW_TAB_BTN
- Label: Click to Open Home Page in New Tab
Step 4: Create a Dynamic Action for the P2_OPEN_PG_NEW_TAB_BTN button and set the Name as open_pg_btn_clicked
Step 5: Set the Properties of the True outcome as shown below
- Action: Execute JavaScript Code
- Code: javascript:window.open(‘f?p=&APP_ID.:1:&APP_SESSION.’,’_blank’);
Save and run the application. Thus, the ran application is shown below:
Click on “Click to Open Home Page in New Tab” button and with that the page will open in a New Tab of the same browser as shown below.
Hence, the solution to our requirement.
If you like the post please comment, share, and do join me on Facebook. Please subscribe to my YouTube Channel for video tutorials.
Thanks & Regards,
Susanto Paul
924 total views, 1 views today