my dog learned polymorphism*
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 Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Capturing window Events" Watch "Capturing window Events" New topic

Capturing window Events


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.

<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.

Joined: May 02, 2000
Posts: 25
Actually it does work with IE and NetScape. I tried that. Thanks.
I agree. Here's the link:
subject: Capturing window Events
Similar Threads
passing the selected value back to calling page
Swing wait for response
how many remaining?
Popup window close button
WA #1.....word association