473,396 Members | 1,789 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

how to access ID tag in IFrame?

Hey guys,
I'm relatively new to javascript. I am basically trying to access an ID tag within an IFrame. My IFrame is set to the following URL = http://www.w3.org/TR/2000/REC-DOM-Le...tml#ID-A6C9094

In that URL i'm looking for the ID Tag "DOMTimeStamp" and I want to print out the element of that ID, which should be "DOMTimeStamp" ...this is the following code i'm using, NOTE: 'sampleFrame' is the name and ID of my IFrame.

var e = document.getElementById('sampleFrame').ownerDocume nt.getElementById('DOMTimeStamp');
alert(e);
alert(e.getInnerHTML());

however e is null? but clearly that ID tag exists? What am I doing wrong?

Thanks!
Aug 15 '06 #1
1 3324
iam_clint
1,208 Expert 1GB
i think you have to use document.framename.getelementbyid
Aug 15 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Steve | last post by:
This really surprised me. I setup an iFrame in my document to display data from another table. For me, this was a way to be able to update that data without having to reload the whole page. Also,...
3
by: pat | last post by:
hi all. am trying to find out how to read/load data from an ini file (and save it too) thanx in advance pat
6
by: jeet_sen | last post by:
Hi, I have generated a table and have attached a pop up to display at onmouseover event of each cell. For each cell the pop up will display cell specific detailed data. I have generated the pop...
1
by: tilt | last post by:
Hello, I use an object element to replace the iframe element in ie, like this: <object id="x_obj" data="http://.../" type="text/html"> <iframe name="x_if" id="x_if"...
1
by: srivatsans101 | last post by:
Hi, I'm trying to access the IFrame contents on a HTML page as frames.document But in IE, I'm getting Access Denied Error Message. I tried to add the IFrame's Src WebSite (a...
4
by: Yansky | last post by:
Is it possible to read the DOM of an iframe if the iframe's src is from another domain? I realise I can't manipulate the DOM from another domain for security reasons, but can I access the DOM...
6
by: oscar1martin | last post by:
The property document.links seems to access links inside a frame, but not an iframe. For instance, the following code displays a "4": 2 links in main page, 2 links in frame1. <body...
1
by: benoypaul | last post by:
I have created iframe with following code <iframe src="http://astore.amazon.com/" width="100%" frameborder="0" name="amframe" id="amframe" height="1" scrolling="no" onLoad="resizeFrame1();"...
9
by: Lee | last post by:
Hi all, We need to create a page where we detect the finish of a game that's hosted on another site. We thought of doing it with frames, where we would put the game in an iframe that is...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.