1. Create 2 Text Items
  • P1_SCREEN_WIDTH
  • P1_SCREEN_HEIGHT

2. Create a Dynamic Action Named “get Screen Resolution”

  • Event = Page Load
  • True Action = Set Value
  • Set Type = JavaScript Expression
  • JavaScript Expression =

  • Affected Elements > Selection Type :  Item(s)
  • Item(s): P1_SCREEN_WIDTH
  • Fire on Initialization :Yes

Create another True action under the same Dynamic Action for height

  • True Action = Set Value
  • Set Type = JavaScript Expression
  • JavaScript Expression =

  • Affected Elements > Selection Type :  Item(s)
  • Item(s): P1_SCREEN_HEIGHT
  • Fire on Initialization :Yes

Now save and run the page. you will see both text items showing screen width & height of the system.

Thank You