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...
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....
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...
I have a datalist tag which allows my users to have a suggestion box. However, I've noticed that this feature is not supported in safari. Is there a workaround to this issue?  Here is my code - I'm actually populating my values with an ajax m...
I cannot get onclick="location.href='link.html'" to load a new page in Safari (5.0.4).  I am building a drop-down navigation menu using the <select> and <option> HTML tags. I am using the onclick handler to load a new page...
My question is about iOS9 only!  I have an HTML landing page, and I try to redirect the user to my app via URL scheme if the app is installed, or redirect to the Appstore otherwise.  My code is:  document.addEventListener("DOMContentLoaded",...
How do I hide the address bar on iPhone?  I tried two different methods so far:   The scroll down one pixel trick with JavaScript on page load And the following meta tags:  <meta name="viewport" content="width=device-width; initial-sca...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.