JavaScript OnUnLoad|Programmering / Grafisk formgivning|Forum|Nordichardware

Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
Lost password?
The forums are currently locked and only available for read only access
sp_Feed sp_TopicIcon
JavaScript OnUnLoad
: : Anders : :
Kommer du hit ofta?
Medlem
Forum Posts: 506
Member Since:
January 21, 2002
sp_UserOfflineSmall Offline
1
January 21, 2003 - 4:48 pm
sp_Permalink sp_Print

Jag har en fil som jag vill ska köras när man lämnar sidan / stänger browsern. Just nu har jag löst det så här: (som jag hittade på internet)


<body onUnload="popupPage()">
<SCRIPT LANGUAGE="JavaScript">
<!-- Begin
function popupPage() {
var page = "fil.php";
windowprops = "height=0,width=0,location=center,"
+ "scrollbars=yes,menubars=no,toolbars=no,resizable=no";
window.open(page, "Pop", windowprops);
}
// End -->
</script>

Men detta ger en popup, jag vill att filen ska köras utan en popup. Jag har noll koll på JavaScript, nån som vet hur det ska göras? 🙂

// Anders

Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1030
Currently Online:
Guest(s) 471
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Andreas Galistel: 16287
Jonas Klar: 15897
ilg@dd: 10810
Nyhet: 10607
Mind: 10550
Ctrl: 10355
Gueno: 9881
Guest: 9344
Snorch: 8881
Callister: 8468
Newest Members:
PetrbonFU PetrbonFU
Karine Bembry
Dolores Mcdaniels
Anibal McLeish
Francisca Alt
Alfie Everhart
Lester Huitt
Orlando Jorgensen
Mikki Lundgren
Dakota Kozlowski
Forum Stats:
Groups: 11
Forums: 59
Topics: 146630
Posts: 1300967

 

Member Stats:
Guest Posters: 2
Members: 79425
Moderators: 0
Admins: 11
Administrators: nordicadmin, Henrik Berntsson, Anton Karmehed, Carl Holmberg, Joel Oscarsson, Mikael Linnér, Mikael Schwartz, Andreas Paulsson, Nickebjrk, Mattias Pettersson, EmxL