Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Capturing window Events  RSS feed

 
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!