Linked Questions

0 votes
2 answers
2k views

How can I get iframe element? [duplicate]

This is main.html <body> <iframe id="frame" src="frame.html"></iframe> <script type="text/javascript"> document.getElementById('frame').contentWindow.document....
jdio's user avatar
  • 3
0 votes
1 answer
65 views

how do i get the innerHTML from iframe using javascript [duplicate]

i want to get the innerHTML from the webpage. it is using iframe inside a body content in html document of the page. here is my code am using however nothing seems to be happening. i am also aware ...
faasd's user avatar
  • 1
38 votes
3 answers
89k views

jQuery changing contents of an iFrame

I'm completely new to using jQuery. Why isn't this working? <iframe width="800" scrolling="no" id="prev" src="">your browser needs to be updated. </iframe> <script src="jquery.js">&...
mavix's user avatar
  • 2,528
30 votes
5 answers
49k views

set innerHTML of an iframe

In javascript, how can I set the innerHTML of an iframe? I mean: how to set, not get. window["ifrm_name"].document.innerHTML= "<h1>Hi</h1>" does not work, and the same for other solutions....
tic's user avatar
  • 4,129
4 votes
4 answers
16k views

Get IFrame innerHTML using JavaScript

I'm trying to get an IFrame inner HTML using below code. <iframe src="http://www.msn.com" width="100%" height="100%" marginwidth="0" scrolling="no" frameborder="0" id="divInfo" ...
MUS's user avatar
  • 1,450
5 votes
4 answers
4k views

How to switch to dynamically named iframe with Behat/Mink

Writing test for an iFrame generated when a button is clicked. The iFrame name and id are similar but generated dynamically. I have used "switchToiFrame" successfully before. <div class="bbbb-...
Ian Jenkins's user avatar
6 votes
1 answer
16k views

find and replace string

Is it possible to look at a page's source code, find a certain part and replace it with something else before the page loads? I would like to accomplish this using JavaScript so that I can use it in a ...
sarsar's user avatar
  • 1,521
2 votes
1 answer
3k views

Populating an iFrame.src with a string with JavaScript

I have the following line of code in my JavaScript program MyFrame.src = mainPath + "/resources/help.htm"; This is the default but in some cases I would like to load the contents of this iFrame with ...
Ann Sanderson's user avatar
3 votes
2 answers
3k views

jQuery Convert Html To Text And Back

If I were to have a text area on my webpage for users to input text, how would I convert that to show as html on button press and vice versa? I am looking for something like what wordpress would do ...
Nicholas Mordecai's user avatar
0 votes
1 answer
4k views

How to find Frame index of frame number?

I used the below code to find text which is present in form located in an iframe. ObjIE.document.frames(0).document.forms(0).innerText Am new to VBA, can some body explain what exactly 0 in Frames(0)...
Sukesh's user avatar
  • 13
0 votes
1 answer
382 views

How to show content of one webpage requiring POST variables in iframe of another website?

Use PHP and MySQL. I have 2 websites, and want to show content on page of first website in the iframe of second website. In the page of first website, it requires POST variable submitted by form. How ...
AJ OP's user avatar
  • 345
0 votes
2 answers
286 views

Getting iframes source?

I have an iframe on my website that displays different site. Is it possible to grab & store/save source of the iframed site?
Wordpressor's user avatar
  • 7,413