handle resize event

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
 
S

Siva M

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
 
G

Guest

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?
 
S

Siva M

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top