/
HTMLFrameSetElement.cljs
420 lines (279 loc) · 12.5 KB
/
HTMLFrameSetElement.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
(ns web.dom.HTMLFrameSetElement
"The HTMLFrameSetElement interface provides special properties
those of the regular `web.dom.HTMLElement` interface they also
for manipulating `<frameset>` elements."
(:refer-clojure :exclude []))
(defn cols
"Property.
Is a DOMString structured as a comma-seperated list specifing
width of each column inside a frameset."
[this]
(-> this (.-cols)))
(defn set-cols!
"Property.
Is a DOMString structured as a comma-seperated list specifing
width of each column inside a frameset."
[this val]
(aset this "cols" val))
(defn rows
"Property.
Is a DOMString structured as a comma-seperated list specifing
height of each column inside a frameset."
[this]
(-> this (.-rows)))
(defn set-rows!
"Property.
Is a DOMString structured as a comma-seperated list specifing
height of each column inside a frameset."
[this val]
(aset this "rows" val))
(defn onafterprint
"Property.
The onafterprint property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing afterprint events for the
window. These events are raised after the user prints, or if
abort the print dialog.
`window.addEventListener(\\\"afterprint\\\", function(event) { ... });
window.onafterprint = function(event) { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onafterprint`"
[this]
(-> this (.-onafterprint)))
(defn set-onafterprint!
"Property.
The onafterprint property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing afterprint events for the
window. These events are raised after the user prints, or if
abort the print dialog.
`window.addEventListener(\\\"afterprint\\\", function(event) { ... });
window.onafterprint = function(event) { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onafterprint`"
[this val]
(aset this "onafterprint" val))
(defn onbeforeprint
"Property.
The onbeforeprint property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing beforeprint events for the
window. These events are raised before the print dialog window
opened.
`window.addEventListener(\\\"beforeprint\\\", function(event) { ... });
window.onbeforeprint = function(event) { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeprint`"
[this]
(-> this (.-onbeforeprint)))
(defn set-onbeforeprint!
"Property.
The onbeforeprint property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing beforeprint events for the
window. These events are raised before the print dialog window
opened.
`window.addEventListener(\\\"beforeprint\\\", function(event) { ... });
window.onbeforeprint = function(event) { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeprint`"
[this val]
(aset this "onbeforeprint" val))
(defn onbeforeunload
"Property.
The onbeforeunload property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing beforeunload events. These
fire when a window is about to unload its resources. At this
the document is still visible and the event is still cancelable.
`window.addEventListener(\\\"beforeunload\\\", function(event) { ... });
window.onbeforeunload = function(event) { ... };
Typically, it is better to use `window.addEventListener()` and the beforeunload event, instead of onbeforeunload.`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload`"
[this]
(-> this (.-onbeforeunload)))
(defn set-onbeforeunload!
"Property.
The onbeforeunload property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing beforeunload events. These
fire when a window is about to unload its resources. At this
the document is still visible and the event is still cancelable.
`window.addEventListener(\\\"beforeunload\\\", function(event) { ... });
window.onbeforeunload = function(event) { ... };
Typically, it is better to use `window.addEventListener()` and the beforeunload event, instead of onbeforeunload.`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload`"
[this val]
(aset this "onbeforeunload" val))
(defn onhashchange
"Property.
The WindowEventHandlers.onhashchange property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing hashchange events.
`Using an event handler:
window.onhashchange = funcRef;
Using an HTML event handler:
<body onhashchange=\\\"funcRef();\\\">
Using an event listener:
To add an event listener, use `addEventListener()`:
window.addEventListener(\\\"hashchange\\\", funcRef, false);`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onhashchange`"
[this]
(-> this (.-onhashchange)))
(defn set-onhashchange!
"Property.
The WindowEventHandlers.onhashchange property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing hashchange events.
`Using an event handler:
window.onhashchange = funcRef;
Using an HTML event handler:
<body onhashchange=\\\"funcRef();\\\">
Using an event listener:
To add an event listener, use `addEventListener()`:
window.addEventListener(\\\"hashchange\\\", funcRef, false);`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onhashchange`"
[this val]
(aset this "onhashchange" val))
(defn onlanguagechange
"Property.
[Experimental]
The onlanguagechange property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing languagechange events.
`object.onlanguagechange = function;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onlanguagechange`"
[this]
(-> this (.-onlanguagechange)))
(defn set-onlanguagechange!
"Property.
[Experimental]
The onlanguagechange property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing languagechange events.
`object.onlanguagechange = function;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onlanguagechange`"
[this val]
(aset this "onlanguagechange" val))
(defn onmessage
"Property.
[Experimental]
The onmessage property of the `web.dom.WindowEventHandlers` mixin
the `EventHandler` called whenever an object receives a message
`window.addEventListener('message', function(event) { ... })
window.onmessage = function(event) { ... }`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onmessage`"
[this]
(-> this (.-onmessage)))
(defn set-onmessage!
"Property.
[Experimental]
The onmessage property of the `web.dom.WindowEventHandlers` mixin
the `EventHandler` called whenever an object receives a message
`window.addEventListener('message', function(event) { ... })
window.onmessage = function(event) { ... }`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onmessage`"
[this val]
(aset this "onmessage" val))
(defn onmessageerror
"Property.
The onmessageerror event handler of the `web.dom.WindowEventHandlers`
is an `web.EventListener`, called whenever an `web.workers.MessageEvent`
type messageerror is fired on a window—that is, when it receives
message that cannot be deserialized.
`window.onmessageerror = function() { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onmessageerror`"
[this]
(-> this (.-onmessageerror)))
(defn set-onmessageerror!
"Property.
The onmessageerror event handler of the `web.dom.WindowEventHandlers`
is an `web.EventListener`, called whenever an `web.workers.MessageEvent`
type messageerror is fired on a window—that is, when it receives
message that cannot be deserialized.
`window.onmessageerror = function() { ... };`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onmessageerror`"
[this val]
(aset this "onmessageerror" val))
(defn onpopstate
"Property.
The onpopstate property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing popstate events on the window.
`window.onpopstate = funcRef;
funcRef is a handler function.`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate`"
[this]
(-> this (.-onpopstate)))
(defn set-onpopstate!
"Property.
The onpopstate property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing popstate events on the window.
`window.onpopstate = funcRef;
funcRef is a handler function.`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onpopstate`"
[this val]
(aset this "onpopstate" val))
(defn onrejectionhandled
"Property.
The onrejectionhandled property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing rejectionhandled events.
events are raised when `js.Promise`s are rejected.
`window.addEventListener(\\\"rejectionhandled\\\", function(event) { ... });
window.onrejectionhandled = function(event) { ...};`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onrejectionhandled`"
[this]
(-> this (.-onrejectionhandled)))
(defn set-onrejectionhandled!
"Property.
The onrejectionhandled property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing rejectionhandled events.
events are raised when `js.Promise`s are rejected.
`window.addEventListener(\\\"rejectionhandled\\\", function(event) { ... });
window.onrejectionhandled = function(event) { ...};`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onrejectionhandled`"
[this val]
(aset this "onrejectionhandled" val))
(defn onstorage
"Property.
The onstorage property of the `web.dom.WindowEventHandlers` mixin
an `EventHandler` for processing storage events.
`window.onstorage = functionRef;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onstorage`"
[this]
(-> this (.-onstorage)))
(defn set-onstorage!
"Property.
The onstorage property of the `web.dom.WindowEventHandlers` mixin
an `EventHandler` for processing storage events.
`window.onstorage = functionRef;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onstorage`"
[this val]
(aset this "onstorage" val))
(defn onunhandledrejection
"Property.
The onunhandledrejection property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing unhandledrejection events.
events are raised for unhandled `js.Promise` rejections.
`window.onunhandledrejection = function;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onunhandledrejection`"
[this]
(-> this (.-onunhandledrejection)))
(defn set-onunhandledrejection!
"Property.
The onunhandledrejection property of the `web.dom.WindowEventHandlers`
is the `EventHandler` for processing unhandledrejection events.
events are raised for unhandled `js.Promise` rejections.
`window.onunhandledrejection = function;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onunhandledrejection`"
[this val]
(aset this "onunhandledrejection" val))
(defn onunload
"Property.
The onunload property of the `web.dom.WindowEventHandlers` mixin
the `EventHandler` for processing unload events. These events
when the window is unloading its content and resources. The resource
is processed after the unload event occurs.
`window.addEventListener(\\\"unload\\\", function(event) { ... });
window.onunload = function(event) { ... };
Typically, it is better to use `window.addEventListener()` and the unload event, instead of onunload.`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onunload`"
[this]
(-> this (.-onunload)))
(defn set-onunload!
"Property.
The onunload property of the `web.dom.WindowEventHandlers` mixin
the `EventHandler` for processing unload events. These events
when the window is unloading its content and resources. The resource
is processed after the unload event occurs.
`window.addEventListener(\\\"unload\\\", function(event) { ... });
window.onunload = function(event) { ... };
Typically, it is better to use `window.addEventListener()` and the unload event, instead of onunload.`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onunload`"
[this val]
(aset this "onunload" val))