How to Set a Default Size For Pop Up With IFrame
My team is utilizing the 'pop up in iframe' click action in a present window. We would like to set the default size of the pop up window to be slightly larger. How would we go about doing this? We know that we can manually make the window larger, but the default size is the goal
1 reply
-
Hi
Unfortunately it is not possible to specify the size of the popup window when using the "Jump to URL" > "Popup in iFrame" action.
You can however use the "Execute JavaScript" action and use the JavaScript function window.open(). This allows you to specify numerous properties of the pop up including width and height.
In this example I am using the "Execute JavaScript" option and some simple code to open a popup window in a specific location on the screen (left=700,top=100) and with a specific width and height (width=800,height=500). The URL I am using is that of a Pyramid Discover.
The JavaScript code I am using is
"window.open('https://demo2020.pyramidanalytics.com/direct?id=afacc812-0331-49f0-8791-1d94875d1747','popUpWindow','height=500,width=800,left=700,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes')"
Running the Presentation and clicking on the "Run Query" object results in:
Hope that helps.
Ian