{"result":{"depiction_url":null,"edges":{"subject":{"objects":[{"created":"2026-09-30T09:11:23Z","object_id":{"id":2555,"is_a":["categorization","keyword","keyword_information_type"],"name":"zotonic_topic_reference","title":"Reference","uri":"https:\/\/zotonic.com\/id\/2555"},"seq":1},{"created":"2026-09-30T09:11:23Z","object_id":{"id":2563,"is_a":["categorization","keyword","keyword_audience"],"name":"zotonic_topic_frontend_developer","title":"Frontend developer","uri":"https:\/\/zotonic.com\/id\/2563"},"seq":2},{"created":"2026-09-30T09:11:23Z","object_id":{"id":2625,"is_a":["categorization","keyword","keyword_architecture"],"name":"zotonic_topic_model","title":"Model","uri":"https:\/\/zotonic.com\/id\/2625"},"seq":3},{"created":"2026-09-30T09:11:23Z","object_id":{"id":2673,"is_a":["categorization","keyword","keyword_technology"],"name":"zotonic_topic_javascript","title":"JavaScript","uri":"https:\/\/zotonic.com\/id\/2673"},"seq":4},{"created":"2026-09-30T09:11:23Z","object_id":{"id":2714,"is_a":["categorization","keyword","keyword_domain"],"name":"zotonic_topic_browser_navigation","title":"Browser navigation","uri":"https:\/\/zotonic.com\/id\/2714"},"seq":5},{"created":"2026-09-30T09:11:23Z","object_id":{"id":2718,"is_a":["categorization","keyword","keyword_technology"],"name":"zotonic_topic_cotonic","title":"Cotonic","uri":"https:\/\/zotonic.com\/id\/2718"},"seq":6}],"predicate":{"id":308,"is_a":["meta","predicate"],"name":"subject","title":{"_type":"trans","tr":{"en":"Keyword"}},"uri":"http:\/\/purl.org\/dc\/elements\/1.1\/subject"}}},"id":2734,"is_a":["text","documentation","reference","cotonic_reference","cotonic_model"],"links":[{"rel":"self","target":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/2734"},{"rel":"hub","target":"https:\/\/zotonic.com\/.zotonic\/websub"}],"medium":null,"medium_url":null,"name":"doc_cotonic_model_window","page_url":{"en":"https:\/\/zotonic.com\/cotonic\/models\/window","x-default":"https:\/\/zotonic.com\/cotonic\/models\/window"},"preview_url":null,"resource":{"version":15,"pivot_location_lat":null,"title":"model\/window","is_authoritative":true,"body":"<a name=\"model.window\"><\/a><h3>model\/window<\/h3>\n            <p>\n            The window model can be used open and close windows.\n            <\/p>\n\n            <!-- post\/open -->\n            <a name=\"model.window.post.open\"><\/a><h4>post\/open<\/h4><p>\n\n            Open a window. The payload of the message can be set t\n            <\/p>\n            <dl>\n                <dt><tt>href<\/tt><\/dt>\n                <dd>The url of the window. See below.<\/dd>\n                <dt><tt>data-window<\/tt><\/dt>\n                <dd>A JSON string containing properties described below.<\/dd>\n            <\/dl>\n\n            Or\n\n            <dl>\n                <dt><tt>url<\/tt><\/dt>\n                <dd>The url of the page to open.<\/dd>\n                <dt><tt>name<\/tt><\/dt>\n                <dd>Specifies the target attribute of the window.\n                  <dl>\n                      <dt><tt>_blank<\/tt><\/dt><dd> opens a new window.<\/dd>\n                      <dt><tt>_parent<\/tt><\/dt><dd> loads the url in the parent window.<\/dd>\n                      <dt><tt>_self<\/tt><\/dt><dd> replaces the current page.<\/dd>\n                      <dt><tt>_top<\/tt><\/dt><dd> replaces any frameset that maybe loaded.<\/dd>\n                      <dt><tt>name<\/tt><\/dt><dd>the name of the window to load.<\/dd>\n                  <\/dl>\n                <\/dd>\n                <dt><tt>width<\/tt><\/dt>\n                <dd>The width of the window in pixels.<\/dd>\n                <dt><tt>height<\/tt><\/dt>\n                <dd>The height of the window in pixels.<\/dd>\n                <dt><tt>toolbar<\/tt><\/dt>\n                <dd>Wether or not to display the browsers toolbar.<\/dd>\n                <dt><tt>scrollbars<\/tt><\/dt>\n                <dd>Wether or not to display scrollbars.<\/dd>\n                <dt><tt>status<\/tt><\/dt>\n                <dd>Wether or not to add a status bar.<\/dd>\n                <dt><tt>resizable<\/tt><\/dt>\n                <dd>Wether or not the window is resizable.<\/dd>\n                <dt><tt>location<\/tt><\/dt>\n                <dd>Wether or not to display the address field.<\/dd>\n                <dt><tt>menubar<\/tt><\/dt>\n                <dd>Wether or not to display the menubar.<\/dd>\n                <dt><tt>centerBrowser<\/tt><\/dt>\n                <dd>Indicate wether or not to center the new window on top of the current active browser window.<\/dd>\n                <dt><tt>centerScreen<\/tt><\/dt>\n                <dd>Indicate wether or not to center the new window on the screen.<\/dd>\n                <dt><tt>top<\/tt><\/dt>\n                <dd>The top position of the window.<\/dd>\n                <dt><tt>left<\/tt><\/dt>\n                <dd>The left position of the window.<\/dd>\n            <\/dl>\n            <pre>\n&lt;a href=&quot;https:\/\/example.com\/logon&quot;\n   class=&quot;btn btn-social&quot;\n   data-onclick-topic=&quot;model\/window\/post\/open&quot;&gt;Logon in with Example.com&lt;\/a&gt;\n   data-window=&quot;{&#39;centerBrowser&#39;: true}&quot;\n==&gt; The click on the link publishes is window open message which will open\n    a centered logon window.<\/pre>\n\n            <pre>\nself.publish(&quot;model\/window\/post\/open&quot;, {url: &quot;https:\/\/example.com\/logon&quot;,\n                                        centerBrowser: true})\n==&gt; A worker opens a logon window.<\/pre>\n\n            <a name=\"model.window.post.close\"><\/a><h4>post\/close<\/h4><p>\n            Open a window.\n            <\/p>\n            <pre>\n&lt;a href=&quot;#&quot; class=&quot;btn btn-default&quot;\n      data-onclick-topic=&quot;model\/window\/post\/close&quot;&gt; Close Window &lt;a&gt;\n==&gt; Closes the current window.\n<\/pre>\n\n            <!-- model document -->\n            ","slug":"model-window","is_protected":false,"visible_for":0,"tz":"UTC","language":["en"],"doc_source_hash":"7e1118fcd44f8524144b0630723b323eb2fd0518b901c27db584fec057c60e8a","is_featured":false,"content_group_id":{"id":2551,"is_a":["meta","content_group"],"name":"content_group_imported_docs","title":"Imported documentation","uri":"https:\/\/zotonic.com\/id\/content_group_imported_docs"},"category_id":{"id":2723,"is_a":["meta","category"],"name":"cotonic_model","title":"Cotonic models","uri":"https:\/\/zotonic.com\/id\/cotonic_model"},"doc_source_path":"index.html","publication_start":"2026-09-30T09:11:23Z","page_path":"\/cotonic\/models\/window","github_url":"https:\/\/github.com\/cotonic\/cotonic\/blob\/master\/index.html","pivot_location_lng":null,"doc_source_kind":"cotonic","name":"doc_cotonic_model_window","is_unfindable":false,"is_published":true,"pivot_geocode":null,"created":"2026-09-30T09:11:23Z","uri":null,"doc_source_anchor":"model.window","doc_status":"current","is_dependent":false,"publication_end":"9999-06-01T00:00:00Z","modifier_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"privacy":0,"doc_source_commit":"f88cc928b997d10f7f19e6bd0ede80e1c8c619bc","creator_id":{"id":1,"is_a":["person"],"name":"administrator","title":"Site Administrator","uri":"https:\/\/zotonic.com\/id\/1"},"modified":"2026-09-30T09:57:31Z","title_slug":"model-window"},"uri":"https:\/\/zotonic.com\/id\/2734","uri_template":"https:\/\/zotonic.com\/id\/:id","websub":{"hub":"https:\/\/zotonic.com\/.zotonic\/websub","topic":"https:\/\/zotonic.com\/.zotonic\/websub\/topic\/2734"}},"status":"ok"}