wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Capturing window Events Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Capturing window Events" Watch "Capturing window Events" New topic
Author

Capturing window Events

rexian
Greenhorn

Joined: May 02, 2000
Posts: 25
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


<BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR><B>Successful people in this world are those who get up and look for the circumstances they want. If they can't find them, they make them.</B><HR></BLOCKQUOTE>
Angela Poynton
Ranch Hand

Joined: Mar 02, 2000
Posts: 3143
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.


Pounding at a thick stone wall won't move it, sometimes, you need to step back to see the way around.
rexian
Greenhorn

Joined: May 02, 2000
Posts: 25
Actually it does work with IE and NetScape. I tried that. Thanks.
Rex
 
Don't get me started about those stupid light bulbs.
 
subject: Capturing window Events
 
Similar Threads
Popup window close button
WA #1.....word association
Swing wait for response
how many remaining?
passing the selected value back to calling page