ianrogren / jquery-backdetect Goto Github PK
View Code? Open in Web Editor NEWjQuery backDetect is a jQuery plugin that is used to determine when a user clicks the back button and fire a callback function.
jQuery backDetect is a jQuery plugin that is used to determine when a user clicks the back button and fire a callback function.
Browser testing was done for http://www.vvaves.net/jquery-backDetect/
The code does not fire for IE11 on Win 7 or Edge on Win 10.
For IE11, when hovering over the Back Button, the following message is displayed:
"Back to The webpage cannot be displayed (Alt+Left)"
Correct me If I'm wrong but the 1x1.png file URL used in the <iframe>
is hardcoded and can't be personnalized with frameDataSrc
?
jquery-backDetect/jquery.backDetect.js
Line 35 in 7b39235
Thanks !
I'd like to submit an Ajax request when the user clicks the back button, but I can't figure out how to prevent the default action happening i.e. the browser goes to the previous page.
Is there something I'm missing on this?
I am unable to catch the back button press when on an iPhone running Chrome. Is this a known issue?
Back event gets triggered only when only when I click or do some actions on the current page
the below function gets triggered only when user manually do some click on the web page.
$.fn.frameInit = function initFrame() {
Scenario1:
Open new tab in Chrome browser and load a.html , go forward to the next page (say, b.html).
click on browser back button. The plugin dosent work
Scenario2:
Open new tab in Chrome browser and load a.html , go forward to the next page (say, b.html).
Now click somewre around the page (b.html) or press any key on the keyboared.
Now click on the browser back button. the plugin works as expected..
Thank you for this library.
If I trigger an alert the page will stay still until I close the alert, but if I use a bootstrap model it will take a second (I am not using the delay option) or two after showing the modal and it will go back to the previews page.
What am I missing?
$('body').backDetect(function () {
alert ("blah");
});
This leads to hitting back twice to get out of the initial page (a.html).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.