on

英[?n]   美[ɑ:n] ?

prep. (indicating direction) to; (indicating object) to; (indicating position) on...; (indicating time) at the time of...

adv. (put, wear, connect) on; forward, (continue) go on

adj. active situation, state ;used; happening; planned

resize

英[?ri:?sa?z] 美[,ri'sa?z]

v.Resize

javascript onresize attribute syntax

Function: Occurs when the window or frame is resized.

Syntax: onresize="SomeJavaScriptCode"

Parameters: SomeJavaScriptCode Required. Specifies the JavaScript to be executed when this event occurs.?

javascript onresize attribute example

<html>
<head>
    <meta charset="UTF-8">

</head>

<body onresize="alert('你改變了瀏覽器的窗口大小')">
<p>瀏覽器窗口大小改變</p>
</body>

</html>

Run instance ?

Click the "Run instance" button to view the online instance