I'm trying to simulate a keyboard event in Safari using JavaScript.  I have tried this:  var event = document.createEvent("KeyboardEvent"); event.initKeyboardEvent("keypress", true, true, null, false, false, false, false, 115, 0...
When using window.onbeforeunload (or $(window).on("beforeonload")), is it possible to display a custom message in that popup?  Maybe a small trick that works on major browsers?  By looking at existing answers I have the feeling this was pos...
What is the difference between screenX/Y, clientX/Y and pageX/Y?  Also for iPad Safari, are the calculations similar as on desktop—OR there is some difference because of viewport?  It would be great if you could point me to an example....
So this is the umteenth revenge of the "how do I get 3rd party cookies to work in Safari" question but I'm asking again because I think the playing field has changed, perhaps after February 2012. One of the standard tricks to get 3rd pa...
alert(new Date('2010-11-29'));   chrome, ff doesn't have problems with this, but safari cries "invalid date". Why ?  edit : ok, as per the comments below, I used string parsing and tried this :   alert(new Date('11-29-2010&...
I've build a web page that let's you select a page name from a drop down list and then transfers the browser to that page.  The code that does the transfer is  if (url){     window.open(url, '_blank'); }    where "url" is th...
This question already has answers here:...
In a project I am working on, I need to validate a date entered into an <input type="date">  With Safari 4/5 (on Mac OSX) the Javascript fails to parse dates of the format YYYY-MM-DD, returning NaN instead of the expected epoch timest...
What are the differences between onbeforeunload and onunload ? Also I have a specific question related to it's use on the iPad...I have a page (myPage.html) where I am trying to show an alert when the page is closed (i.e. X is pressed to close...
I've run into an issue with opening a new window in safari (both ipad and desktop versions) that revolves around the popup blocker. Basically I've found that if window.open isn't called from a click event, safari will block the popup....

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.