javascript onresize attribute
Translation results:
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 attributesyntax
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 attributeexample
<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