All Questions
Tagged with visibility javascript
386
questions
1
vote
4
answers
1k
views
Can you control the order in which images (hidden vs visible) on a web page are loaded?
If I have two divs, one shown, the other hidden, I want the images in the visible div to load first and only then for the other hidden images to load.
Is there a way to do this?
<div class="...
1
vote
1
answer
331
views
Need help understanding problem alternating visibility of a DIV by dynamically switching classes
This code attempts to dynamically switch the class of the StateContainer div from StateOne to StateTwo to alternate the visibility of the DIV.
When I run it, I always see the following both before ...
3
votes
4
answers
332
views
Ok, we can have private identifiers in javascript, but what about protected ones?
Simple as that, can we emulate the "protected" visibility in Javascript somehow?
1
vote
1
answer
4k
views
Changing visibility does not immediately hide iFrame
I have a page that on a certain action makes an iframe visible and fills the iframe with some HTML (say for example a multi-select box and an ok button).
The OK button on the iframe has the onClick ...
10
votes
7
answers
70k
views
Div type="hidden" + Not hided
In my code, I have a div tag with type="hidden". I just don't want to show the div. If needed, I will show it using JQuery Show().
But, using this, my div is not hidden from view.
Edit:
Now I ...
17
votes
8
answers
157k
views
How can I hide a TD tag using inline JavaScript or CSS?
How can I hide a <td> tag using JavaScript or inline CSS?
0
votes
3
answers
939
views
Javascript: Can I access source of the file that is loaded in the hidden iframe
I have found this code for putting hidden iframe into my html and loading url into it:
var i = document.createElement('iframe');
i.style.display = 'none';
i.onload = function() { i.parentNode....
2
votes
2
answers
7k
views
toggle div visibility with a checkbox list
I have a web application(ASP.NET2.0 C#).
Within it, I have a div that contains a checkbox list and a button.
I want to toggle the div viewing, so I got some javascript code online to help me.
Heres ...
132
votes
15
answers
139k
views
How do I check if an element is really visible with JavaScript? [duplicate]
In JavaScript, how would you check if an element is actually visible?
I don't just mean checking the visibility and display attributes. I mean, checking that the element is not
visibility: hidden or ...
1
vote
2
answers
899
views
Visibility of script includes in an IFRAME
For example:
script.js:
function functionFromScriptJS() {
alert('inside functionFromScriptJS');
}
iframe.html:
<html>
<head>
<script language="Javascript" src="script.js"><...
8698
votes
67
answers
3.2m
views
How do I check if an element is hidden in jQuery?
How do I toggle the visibility of an element using .hide(), .show(), or .toggle()?
How do I test if an element is visible or hidden?