I am creating a jQuery plugin.  How do I get real image width and height with Javascript in Safari?  Following works with Firefox 3, IE7 and Opera 9:  var pic = $("img")  // need to remove these in of case img-element has set width and heig...
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....
I failed to parse an ISO-8601 date "2011-04-26T13:16:50Z" on IE8 and Safari 5, but it worked on Chrome 10, FF4. Support seems to be quite mixed?   Does anyone know the actual status of which browsers can parse this format? I assume IE6, and...
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...
How do you programmatically select the text of an input field on iOS devices, e.g. iPhone, iPad running mobile Safari?  Normally it is sufficient to call the .select() function on the <input ... /> element, but this does not work on those dev...
This question already has answers here:...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.