JavaScriptでウインド操作する場合は、プロパティやメソッドを使用します。たとえば「window.close」「window.onload」などが該当します。
ウインドウオブジェクトのプロパティやメソッドなどは階層で管理されています。実際に階層をクリックして確認してください。ブラウザやバージョン毎により異なりますので注意が必要です。
サンプルは全てライセンスフリーとしていますので、改変や再配布も自由です。(コメントを残していただけると幸いです)
ただし、動作の保証は一切行っておりませんのでご理解の上、ご利用ください。
型 | プロパティ | 値 |
---|---|---|
boolean | closed | false |
function | TmBpAlert | function TmBpAlert(s) { try { s_script = 'alert("'+s+'")'; ret = window.TmBpIeBHO.ScanJavascript(s_script, window); } catch(e) {} TmBpOrgAlert(s); } |
function | TmBpConfirm | function TmBpConfirm(s) { try { s_script = 'confirm("'+s+'")'; ret = window.TmBpIeBHO.ScanJavascript(s_script, window); } catch(e) {} return TmBpOrgConfirm(s); } |
function | TmBpOrgAlert | function alert() { [native code] } |
function | TmBpOrgConfirm | function confirm() { [native code] } |
function | TmBpOrgUnesp | function unescape() { [native code] } |
function | TmBpUnesp | function TmBpUnesp(s) { if (TmBpShellcodeStatus == 0) { var shellcode = TmBpOrgUnesp(s); var ret = 0; try { ret = window.TmBpIeBHO.ScanShellcode(shellcode, window); } catch(e) {} if (ret == 1) { TmBpShellcodeStatus = 1; window.onerror = function(){return true;}; throw ''; } return shellcode; } else { throw ''; } } |
function | addEventListener | function addEventListener() { [native code] } |
function | alert | function TmBpAlert(s) { try { s_script = 'alert("'+s+'")'; ret = window.TmBpIeBHO.ScanJavascript(s_script, window); } catch(e) {} TmBpOrgAlert(s); } |
function | atob | function atob() { [native code] } |
function | blur | function blur() { [native code] } |
function | btoa | function btoa() { [native code] } |
function | cancelAnimationFrame | function cancelAnimationFrame() { [native code] } |
function | captureEvents | function captureEvents() { [native code] } |
function | clearImmediate | function clearImmediate() { [native code] } |
function | clearInterval | function clearInterval() { [native code] } |
function | clearTimeout | function clearTimeout() { [native code] } |
function | close | function close() { [native code] } |
function | confirm | function TmBpConfirm(s) { try { s_script = 'confirm("'+s+'")'; ret = window.TmBpIeBHO.ScanJavascript(s_script, window); } catch(e) {} return TmBpOrgConfirm(s); } |
function | dispatchEvent | function dispatchEvent() { [native code] } |
function | focus | function focus() { [native code] } |
function | getComputedStyle | function getComputedStyle() { [native code] } |
function | getSelection | function getSelection() { [native code] } |
function | item | function item() { [native code] } |
function | matchMedia | function matchMedia() { [native code] } |
function | moveBy | function moveBy() { [native code] } |
function | moveTo | function moveTo() { [native code] } |
function | msCancelRequestAnimationFrame | function msCancelRequestAnimationFrame() { [native code] } |
function | msClearImmediate | function msClearImmediate() { [native code] } |
function | msIsStaticHTML | function msIsStaticHTML() { [native code] } |
function | msMatchMedia | function msMatchMedia() { [native code] } |
function | msRequestAnimationFrame | function msRequestAnimationFrame() { [native code] } |
function | msSetImmediate | function msSetImmediate() { [native code] } |
function | msWriteProfilerMark | function msWriteProfilerMark() { [native code] } |
function | navigate | function navigate() { [native code] } |
function | onload | function() {
// デフォルトの先頭オブジェクトを階層リストに入れる cman_kaisoIdx = 0; cman_kaisoObjList[cman_kaisoIdx] = window; // デフォルトでwindowオブジェクトを表示 cman_winList(window); } |
function | open | function open() { [native code] } |
function | postMessage | function postMessage() { [native code] } |
function | function print() { [native code] } | |
function | prompt | function prompt() { [native code] } |
function | releaseEvents | function releaseEvents() { [native code] } |
function | removeEventListener | function removeEventListener() { [native code] } |
function | requestAnimationFrame | function requestAnimationFrame() { [native code] } |
function | resizeBy | function resizeBy() { [native code] } |
function | resizeTo | function resizeTo() { [native code] } |
function | scroll | function scroll() { [native code] } |
function | scrollBy | function scrollBy() { [native code] } |
function | scrollTo | function scrollTo() { [native code] } |
function | setImmediate | function setImmediate() { [native code] } |
function | setInterval | function setInterval() { [native code] } |
function | setTimeout | function setTimeout() { [native code] } |
function | showHelp | function showHelp() { [native code] } |
function | showModalDialog | function showModalDialog() { [native code] } |
function | showModelessDialog | function showModelessDialog() { [native code] } |
function | toStaticHTML | function toStaticHTML() { [native code] } |
function | toString | function toString() { [native code] } |
number | TmBpShellcodeStatus | 0 |
number | animationStartTime | 5568287119568.593 |
number | devicePixelRatio | 1 |
number | innerHeight | 990 |
number | innerWidth | 1053 |
number | length | 0 |
number | maxConnectionsPerServer | 2 |
number | msAnimationStartTime | 5568287119568.593 |
number | outerHeight | 1121 |
number | outerWidth | 1061 |
number | pageXOffset | 0 |
number | pageYOffset | 0 |
number | screenLeft | 652 |
number | screenTop | 127 |
number | screenX | 648 |
number | screenY | 20 |
object | TmBpIeBHO | |
object | applicationCache (>21) | [object ApplicationCache] |
object | clientInformation (>34) | [object Navigator] |
object | clipboardData (>7) | [object DataTransfer] |
object | console (>19) | [object Console] |
object | document (>255) | [object HTMLDocument] |
object | event (>18) | [object Event] |
object | external | |
object | frameElement | |
object | frames (>200) | [object Window] |
object | history (>7) | [object History] |
object | location (>13) | file:///C:/200_開発/1700_htmlリファレンス/javascript_ref/window/object/index_tmp.htm |
object | msCrypto (>2) | [object Crypto] |
object | navigator (>34) | [object Navigator] |
object | onabort | |
object | onafterprint | |
object | onbeforeprint | |
object | onbeforeunload | |
object | onblur | |
object | oncanplay | |
object | oncanplaythrough | |
object | onchange | |
object | onclick | |
object | oncontextmenu | |
object | ondblclick | |
object | ondrag | |
object | ondragend | |
object | ondragenter | |
object | ondragleave | |
object | ondragover | |
object | ondragstart | |
object | ondrop | |
object | ondurationchange | |
object | onemptied | |
object | onended | |
object | onerror | |
object | onfocus | |
object | onfocusin | |
object | onfocusout | |
object | onhashchange | |
object | onhelp | |
object | oninput | |
object | onkeydown | |
object | onkeypress | |
object | onkeyup | |
object | onloadeddata | |
object | onloadedmetadata | |
object | onloadstart | |
object | onmessage | |
object | onmousedown | |
object | onmouseenter | |
object | onmouseleave | |
object | onmousemove | |
object | onmouseout | |
object | onmouseover | |
object | onmouseup | |
object | onmousewheel | |
object | onmsgesturechange | |
object | onmsgesturedoubletap | |
object | onmsgestureend | |
object | onmsgesturehold | |
object | onmsgesturestart | |
object | onmsgesturetap | |
object | onmsinertiastart | |
object | onmspointercancel | |
object | onmspointerdown | |
object | onmspointerenter | |
object | onmspointerleave | |
object | onmspointermove | |
object | onmspointerout | |
object | onmspointerover | |
object | onmspointerup | |
object | onoffline | |
object | ononline | |
object | onpagehide | |
object | onpageshow | |
object | onpause | |
object | onplay | |
object | onplaying | |
object | onpointercancel | |
object | onpointerdown | |
object | onpointerenter | |
object | onpointerleave | |
object | onpointermove | |
object | onpointerout | |
object | onpointerover | |
object | onpointerup | |
object | onpopstate | |
object | onprogress | |
object | onratechange | |
object | onreadystatechange | |
object | onreset | |
object | onresize | |
object | onscroll | |
object | onseeked | |
object | onseeking | |
object | onselect | |
object | onstalled | |
object | onstorage | |
object | onsubmit | |
object | onsuspend | |
object | ontimeupdate | |
object | onunload | |
object | onvolumechange | |
object | onwaiting | |
object | parent (>200) | [object Window] |
object | performance (>15) | [object Performance] |
object | screen (>17) | [object Screen] |
object | self (>200) | [object Window] |
object | styleMedia (>2) | [object StyleMedia] |
object | top (>200) | [object Window] |
object | window (>200) | [object Window] |
string | defaultStatus | |
string | doNotTrack | 1 |
string | name | |
string | offscreenBuffering (>4) | auto |
string | status | |
undefined | indexedDB | |
undefined | localStorage | |
undefined | msIndexedDB | |
undefined | opener | |
undefined | sessionStorage |