handle resize event

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hey all,
is there a way to handle the event of resizing the browser window? If so,
what attribute/property will give me the width of the browser?

thanks for any help,
rodchar
 
You have onresize client-side event for this purpose:

<body onresize="resizeEventHandler();">
<body>

hey all,
is there a way to handle the event of resizing the browser window? If so,
what attribute/property will give me the width of the browser?

thanks for any help,
rodchar
 
how do i get the width of my browser. i see examples like window.innerWidth
but that's not working for me. am i doing something wrong?
 
If you are using IE:

document.body.scrollWidth
document.body.scrollHeight

how do i get the width of my browser. i see examples like window.innerWidth
but that's not working for me. am i doing something wrong?
 
Back
Top