Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Capturing window Events

 
rexian
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have wriiten an index.html file. Its static html. Now when the user goes and clicks on the window resize button (the middle buuton on the right top corner of the browser window), I want to display something else inside the page by using javascript.
How do I track this event? for IE and NetScape please. Source Code will be much appreciated.
Thanks,
Rex
 
Angela Poynton
Ranch Hand
Posts: 3143
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is an event in JavaScript called onResize(). I can't remember if it works on IE & Netscape and don't have my reference book near me. Give it a try though, as far as I know it's they only thing that'll work.
 
rexian
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually it does work with IE and NetScape. I tried that. Thanks.
Rex
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic