The Question : 622 people think this question is useful I have JavaScript that is doing activity periodically. When the user is not looking at the site (i.e., the window or tab does not have focus), it’d be nice to not run. Is there a way to do this using JavaScript? My reference point: Gmail
The Question : 364 people think this question is useful I have some disabled inputs in a form and I want to send them to a server, but Chrome excludes them from the request. Is there any workaround for this without adding a hidden field? The Question Comments : Possible duplicate of values of disabled
The Question : 954 people think this question is useful What is the best (correct, modern, cross-browser, safe) way to get a web browser to navigate to a URL of your choice using JavaScript? The Question Comments : Not a duplicate. The other question is about redirection. The Answer 1 1544 people think this answer
The Question : 363 people think this question is useful I already have a window open with the web site I’m debugging. I don’t need VS to launch another one for me every time I need to debug. Is there a way to stop this behavior? The Question Comments : Do you have tabbed browsing
The Question : 566 people think this question is useful Purely out of curiosity, which browsers does Base64 image embedding work in? What I’m referring to is this. I realize it’s not usually a good solution for most things, as it increases the page size quite a bit – I’m just curious. Some examples: HTML:
The Question : 633 people think this question is useful Is there a standard way for a web server to be able to determine a user’s timezone within a web page? Perhaps from an HTTP header or part of the user-agent string? The Question Comments : Ask the user. If you get the time zone
The Question : 904 people think this question is useful Both WebSockets and Server-Sent Events are capable of pushing data to browsers. To me they seem to be competing technologies. What is the difference between them? When would you choose one over the other? The Question Comments : Not sure how you see them as
The Question : 991 people think this question is useful Is this defined by the language? Is there a defined maximum? Is it different in different browsers? The Question Comments : You don’t need to depend on JS’s limits with libraries like github.com/MikeMcl/big.js, see e.g. here for its reliability tests what’s the highest integer value
The Question : 1014 people think this question is useful Is there an efficient way to tell if a DOM element (in an HTML document) is currently visible (appears in the viewport)? (The question refers to Firefox.) The Question Comments : Depends what you mean by visible. If you mean is it currently shown on
The Question : 1491 people think this question is useful What’s the difference if one web page starts with and If page starts with If there is no difference, I suppose I can just ignore the X-UA-Compatible meta header, since I just want it to be rendered in most standard mode in all IE versions.
The Question : 2895 people think this question is useful How do you disable autocomplete in the major browsers for a specific input (or form field)? The Question Comments : In some systems where testers have to manually enter a lot of information over and over it might be useful to have the option as
The Question : 568 people think this question is useful CSS Selectors are matched by browser engines from right to left. So they first find the children and then check their parents to see if they match the rest of the parts of the rule. Why is this? Is it just because the spec says?