Skip to main content

All Questions

0 votes
1 answer
200 views

How to get style attribute of iframe from inside of that iframe(javascript)

I'm trying to perform an action when iframe element is visible, but the iframe has style attribute where "visibiliy:hidden" is defined, this gives the output of iframe's :is('visible') as true, I'm ...
Deepti Patil's user avatar
0 votes
1 answer
507 views

JS : Detect within an iframe from other domain if it is visible or not

I have an issue with knowing whether my iframe placed inside a HTML doc is visible (above the fold) or not. My webpage : https://oneserver.com/index.html <html> <head> </head> <...
Nico's user avatar
  • 1
0 votes
1 answer
653 views

iframe within hidden div - iframe content not visible

I'm looking for an explanation of the following observed behaviour: A <div id="parent" style="visibility:hidden"> <div id="child" style="visibility:visible"></div> <...
mungmacoder's user avatar
-1 votes
2 answers
182 views

Javascript does'nt switch div visibility

I'm working on a script that would allow me to change which div is visible, but right now it does'nt work and i can't figure out why. Could someone help me to find a solution ? html ...
Macjeje's user avatar
  • 37
0 votes
1 answer
437 views

Onload styling in javascript?

could you help me with the onload function in Javascript? preload.style.visibility = 'hidden'; Could you tell me what the onload version of this would be, in the same type of format as this code? ...
user2238389's user avatar
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 ...
Adnan's user avatar
  • 2,967
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....
neon's user avatar
  • 1,493
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"><...
axk's user avatar
  • 5,354