An electronic device (120, 210) supporting an application comprising: a memory configured to store a browser application representing a webpage; and a processor configured to: execute the browser application and display a viewport of a webpage, collect position information of a scroll associated with the viewport in the webpage, and identify whether a content item is a text item or an image element and whether the content item has a fixed position in the viewport, wherein the identified content item is a content item closest to a predefined point of the viewport of the webpage that corresponds to coordinate-based position information of the scroll, wherein, when the identified content item is the text item without the fixed position, the collected position information comprises the coordinate-based scroll position information and corresponding text content of the text item, wherein, when the identified content item is the image element without the fixed position, the collected position information comprises the coordinate-based scroll position information and a text of a source URL of the image element, identify state information of the browser application and transfer the state information to another electronic device, wherein the state information comprises a uniform resource locator, URL, of the webpage, cookie data of the URL, and the collected position information of the scroll associated with the viewport in the webpage. a memory configured to store a browser application representing a webpage; and a processor configured to: execute the browser application and display a viewport of a webpage, collect position information of a scroll associated with the viewport in the webpage, and identify whether a content item is a text item or an image element and whether the content item has a fixed position in the viewport, wherein the identified content item is a content item closest to a predefined point of the viewport of the webpage that corresponds to coordinate-based position information of the scroll, wherein, when the identified content item is the text item without the fixed position, the collected position information comprises the coordinate-based scroll position information and corresponding text content of the text item, wherein, when the identified content item is the image element without the fixed position, the collected position information comprises the coordinate-based scroll position information and a text of a source URL of the image element, identify state information of the browser application and transfer the state information to another electronic device, wherein the state information comprises a uniform resource locator, URL, of the webpage, cookie data of the URL, and the collected position information of the scroll associated with the viewport in the webpage. execute the browser application and display a viewport of a webpage, collect position information of a scroll associated with the viewport in the webpage, and identify whether a content item is a text item or an image element and whether the content item has a fixed position in the viewport, wherein the identified content item is a content item closest to a predefined point of the viewport of the webpage that corresponds to coordinate-based position information of the scroll, wherein, when the identified content item is the text item without the fixed position, the collected position information comprises the coordinate-based scroll position information and corresponding text content of the text item, wherein, when the identified content item is the image element without the fixed position, the collected position information comprises the coordinate-based scroll position information and a text of a source URL of the image element, identify state information of the browser application and transfer the state information to another electronic device, wherein the state information comprises a uniform resource locator, URL, of the webpage, cookie data of the URL, and the collected position information of the scroll associated with the viewport in the webpage.