DSGN53871
WEB DESIGN 1
onBlur - onFocus: Event Handlers You can control the Pop Up Window by using onBlur and onFocus within the body tag of the page. onfocus = script Executes JavaScript code when a window, frame, or frameset receives focus or when a form element receives input focus. onblur = script Executes JavaScript code when a form element loses focus or when a window or frame loses focus. To control the Pop up window When the page loads, we are telling the page to become "Focused" or the active window. When the page is not the active window or "Blur", we are telling the window to close. <body onblur="self.close();">Do NOT add onBlur and onFocus to your main window! This will cause you many problems! << Back Interactive Multimedia ~ School of Applied Engineering and Computing Sciences ~ Sheridan |