Jump to content


Photo

focus..


  • Please log in to reply
3 replies to this topic

#1 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 08 May 2006 - 08:37 PM

Is there anyway i can get a window to shut if someone comes away from it...

I mean if someone has to view a website for 20 seconds before they can proceed... if they minimize it or go to another window can i automatically close my window??

#2 nogray

nogray
  • Members
  • PipPipPip
  • Advanced Member
  • 930 posts
  • LocationSan Francisco CA

Posted 25 May 2006 - 07:46 AM

a script can only close a window that was open by a script.

NoGray.com


#3 brown2005

brown2005
  • Members
  • PipPipPip
  • Advanced Member
  • 943 posts

Posted 01 June 2006 - 07:05 PM

yeah thats what i want...

say someone clicks on a link on my homepage a page pop-ups and they have to view this for say 20 seconds and they get 1 view to their record, however if they minimize it or go to another page i want to make it so they cant get 1 view and the page closes.

#4 king arthur

king arthur
  • Members
  • PipPipPip
  • Advanced Member
  • 335 posts
  • LocationUK HQ

Posted 01 June 2006 - 07:10 PM

Use an onblur event in the body tag of the window being closed or minimised.
Sir Isaac Newton said "If I have seen farther, it is by standing on the shoulders of giants". But it is not recorded as to whether he said it before or after he was hit on the head by a falling apple.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users