Avatar billede zux Nybegynder
13. marts 2000 - 16:05 Der er 5 kommentarer

Credits

How can I create a script who makes a little window (witdh="200" height="300") wo pop-up when the visitor leaves the site? The name of the window is Credits and the src is credits.html
Avatar billede pfm Nybegynder
13. marts 2000 - 16:47 #1
Prøv med:
<body onblur="var apopup = window.open('credits.htm','Credits','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=200,height=300');"
Avatar billede pfm Nybegynder
13. marts 2000 - 16:48 #2
>credits.html, sorry
Avatar billede kim_bille Nybegynder
13. marts 2000 - 18:30 #3
I think it's
<body onUnLoad="var apopup = window.open('credits.htm','Credits','toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizable=no,copyhistory=no,width=200,height=300');"
Avatar billede netsrac Praktikant
13. marts 2000 - 21:06 #4
Ja må jo nok give kim_billie ret :-)
pfm >> OnBlur ? Hvordan kom du frem til det ?
no affence :-)
Avatar billede pfm Nybegynder
14. marts 2000 - 08:53 #5
OnBlur has actually allmost the same result as onUnLoad - onblur happens first, when body is on its way out of the body focus, where onunload (as the commandname says) happens on the way to the next ....
I really don't know why I use OnBlur instead of onUnLoad - I think I may have had some trouble having it worked correctly in both IE and NS.
Anyway - Ether one can be used. And to have another one's word for it - look at
http://www.webreview.com/pub/98/11/06/feature/index3.html
By the way - If you want to have it work in old browsers I will advice you to use commands as OnBlur in lowercase only (onblur).
Avatar billede Ny bruger Nybegynder

Din løsning...

Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.

Loading billede Opret Preview
Kategori
Vi tilbyder markedets bedste kurser inden for webudvikling

Log ind eller opret profil

Hov!

For at kunne deltage på Computerworld Eksperten skal du være logget ind.

Det er heldigvis nemt at oprette en bruger: Det tager to minutter og du kan vælge at bruge enten e-mail, Facebook eller Google som login.

Du kan også logge ind via nedenstående tjenester