- 0
[JavaScript] onbeforeunload with exception
-
Recently Browsing 0 members
- No registered users viewing this page.
-
Posts
-
By Case_f · Posted
"Microsoft plans to remove the MSN feed..." Yaaay, finally the horrible dumpster fire of badly translated tabloid trash is going away! Good riddance! "...and replace it with Copilot Discover..." Oh ffs... -
-
By ZipZapRap · Posted
Yep same as every company, sadly. The biggest bank in Australia just laid off a bunch of staff even though they made record profits, then advertised the roles in India -
By ZipZapRap · Posted
I’m with you -
Kdenlive 25.08 RC1 by Razvan Serea Kdenlive is an acronym for KDE Non-Linear Video Editor. It works on GNU/Linux, Windows and BSD. Through the MLT framework, Kdenlive integrates many plugin effects for video and sound processing or creation. Furthermore Kdenlive brings a powerful titling tool, a DVD authoring (menus) solution, and can then be used as a complete studio for video creation. Kdenlive supports all of the formats supported by FFmpeg or libav (such as QuickTime, AVI, WMV, MPEG, and Flash Video, among others), and also supports 4:3 and 16:9 aspect ratios for both PAL, NTSC and various HD standards, including HDV and AVCHD. Video can also be exported to DV devices, or written to a DVD with chapters and a simple menu. Video editing features: Multi-track editing with a timeline and supports an unlimited number of video and audio tracks. A built-in title editor and tools to create, move, crop and delete video clips, audio clips, text clips and image clips. Ability to add custom effects and transitions. A wide range of effects and transitions. Audio signal processing capabilities include normalization, phase and pitch shifting, limiting, volume adjustment, reverb and equalization filters as well as others. Visual effects include options for masking, blue-screen, distortions, rotations, colour tools, blurring, obscuring and others. Configurable keyboard shortcuts and interface layouts. Rendering is done using a separate non-blocking process so it can be stopped, paused and restarted. Kdenlive also provides a script called the Kdenlive Builder Wizard (KBW) that compiles the latest developer version of the software and its main dependencies from source, to allow users to try to test new features and report problems on the bug tracker. Project files are stored in XML format. An archiving feature allows exporting a project among all assets into a single folder or compressed archive. Built-in audio mixer Kdenlive 25.08 RC1 changelog: Optimized interface for lower resolution screens Project files are now properly recognized and can easily be opened by clicking them on MacOS Fix location of title templates on Windows Fix downloadable keyboard schemes Fix python 3.13 compatibility for Whisper Added power management support to prevent sleep while playing / rendering Support for start timecode Added option to display the markers of all clips in the project in the guides list Show thumbnails in the guides list Redesigned mixer Download: Kdenlive 25.08 RC1 | 117.0 MB (Open Source) Links: Kdenlive Home page | Other Operating Systems Get alerted to all of our Software updates on Twitter at @NeowinSoftware
-
-
Recent Achievements
-
Itbob513626 earned a badge
Week One Done
-
Itbob513626 earned a badge
One Month Later
-
EdwardFranciscoVilla went up a rank
Rookie
-
MoJo624 earned a badge
Week One Done
-
aeganwn earned a badge
Collaborator
-
-
Popular Contributors
-
Tell a friend
Question
James Rose
I am working on a site that places orders and mgmt wants an alert when the user attempts to leave the site so that they don't lose their order. So of course the base answer is to use the "onbeforeunload" function. This is fine, except that there are "a href" tags that call JavaScript functions on the page (no way around this) So what I'm attempting to do is to find a way around. I have a variable (mbBeforeUnload) that is set when an item has been added to the order. But other than that I have not been able to find a way around this issue.
Code:
window.onbeforeunload = checkBeforeUnload;
function checkBeforeUnload(){
if (mbBeforeUnload){
return "The order will be lost if you navigate away from this page.";
}
}
Any thoughts?
Link to comment
https://www.neowin.net/forum/topic/791362-javascript-onbeforeunload-with-exception/Share on other sites
10 answers to this question
Recommended Posts