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 Chat...
I want to run a psychological study for which participants have to look at large images.  The experiment is done on the web and therefore in a browser window. Is it possible to tell the browser to go into fullscreen, for example on button press?  I k...
I want to open popup window when browser closed or closed tabs....
In JavaScript, there is a method window.getSelection(), that lets me get the current selection that the user has made.  Is there a corresponding function, something like window.setSelection(), that will let me set, or clear, the current selection?...
This is not something we'd normally do but we're trying load a video into the blank window opened by a clickTag (from a banner ad) - and make it feel like a modal window as much as possible.  Is it possible to use javascript to self-resize th...
I have learned that the Window Global Object is the top level Object. He is the "box" of all the codes its Contain the DOM,BOM,and The JS.  I have learned that the window object represents an open window in a browser, and also that the window...
I want to use a simple function to hide/show content only on mobile devices. The function itself is pretty straightforward. I use this code here for that:      $('.toggleMobile').click(function() {         var hideableContent = $(this).parent...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.