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...
How can I detect the page zoom level in all modern browsers? While this thread tells how to do it in IE7 and IE8, I can't find a good cross-browser solution. Firefox stores the page zoom level for future access. On the first page load, would I...
I am doing an online quiz app in php. I want to restrict the user from going back in an exam. I have tried the following script but it stops my timer. What should I do?  I have included the source code. The timer is stored in cdtimer.js  <script...
I have seen this question asked in a couple of different ways on SO and several other websites, but most of them are either too specific or out-of-date. I'm hoping someone can provide a definitive answer here without pandering to speculation....
Is it possible to hide the Javascript code from the html of a webpage, when the source code is viewed through the browsers View Source feature?   I know it is possible to obfuscate the code, but I would prefer it being hidden from the view source f...
If I for example have   <p> some long text </p>   on my HTML page, how can I know that cursor of mouse is for example above the word 'text'?...
I have seen references to some browsers natively supporting JSON parsing/serialization of objects safely and efficiently via the window.JSON Object, but details are hard to come by. Can anyone point in the right direction? What are the methods this...
I'm wondering if it's possible to sandbox JavaScript running in the browser to prevent access to features that are normally available to JavaScript code running in an HTML page.  For example, let's say I want to provide a JavaScript API...
I want to open the pdf file in an iframe. I am using following code:  <a class="iframeLink" href="https://something.com/HTC_One_XL_User_Guide.pdf"    jQuery1640737952376988841="85"> User guide </a>   It is openin...

Tags

Recent Questions

Top Questions

Home Tags Terms of Service Privacy Policy DMCA Contact Us

©2020 All rights reserved.