473,394 Members | 1,759 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,394 software developers and data experts.

document.embeds

Art
Is document.embeds still a part of the current/latest javascript DOM ?

Jul 23 '05 #1
2 1936
Art wrote:
Is document.embeds still a part of the current/latest javascript DOM ?


There is no such thing like a "javascript DOM". There is the language
JavaScript and the DOM of the user agent. The only thing both have to
do with one another is that DOM of the UA can be accessed with client-side
JavaScript (or another ECMAScript implementation, like JScript in IE).

"embeds" is a property of the `document' object in the Netscape 4 DOM
(Netscape Navigator 4.x), the IE DOM (IE browser component, versions
4 and above) and the Gecko DOM (Netscape Gecko-based user agents, for
example Mozilla, Firefox, Netscape 6+, Camino).

The HTMLDocument interface of DOM Level 2 provides no such attribute,
it defines the "applets" attribute (to be bind to ECMAScript applications
as "applets" property) instead (which is intended to cover access to both
"applet" and "object" elements (HTMLAppletElement and HTMLObjectElement
objects), since there is no "embed" element in Valid (X)HTML).

Whether the DOM of a UA implements either one or not is a completely
different issue and nothing that can be relied upon. What works in
one UA is not required to work in another, so you should use feature
testing prior to access.

<http://pointedears.de/scripts/test/whatami>
HTH

PointedEars
Jul 23 '05 #2
Art
Yes it does help.

Thank you for the reply and info.

Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: techy techno | last post by:
Hii Just wanted to know how can I decorate my texboxes and Listmenu which is called from a JS file using the following code below: document.write("<SELECT NAME='cur2' ONCHANGE='cconv1();'>");...
6
by: 2obvious | last post by:
This is a pipe dream, I realize, but I'm trying to emulate the functionality of the W3C DOM-supported document.getElementsByTagName method under the very nightmarish Netscape 4. Through some...
3
by: Rosinger | last post by:
Hi all, What is the preferred in term of browser copatability to get a reference to an element in the document in JavaScript? I am not sure about when to use document.all or document.layers or...
2
by: kiran | last post by:
Hi all, I want to dynamically change a flash movie in an html page. Following code is working fine in IE, but netscape 4 and 6 it is not working. Can any one rectify the error: <HTML> <HEAD>...
2
by: Brett Baisley | last post by:
Hello I have a block of html code that I want to run by calling a javascript function to print it. Its basically a table with menu items in it that is the same for many pages, and instead of...
2
by: Edward | last post by:
The below code builds 2 tables 4 rows by 4 cols. All cells have checkboxes. When checked, the checkboxes in the first column automatically check the remainder of the check boxes in the same row. ...
1
by: lawrence | last post by:
This PHP function prints out a bunch of Javascript (as you can see). This is all part of the open source weblog software of PDS (www.publicdomainsoftware.org). We had this javascript stuff...
12
by: Kepler | last post by:
How do you get the height of the client browser in IE? Both document.body.clientHeight and document.body.offsetHeight return the height of the document. If the page is long and there's a vertical...
2
by: chriscorbell | last post by:
I have a specific but somewhat high-level question on how to approach a schema which embeds a subset of XHTML in some elements. I have a schema defined for a logical document structure. Sections...
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
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:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
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...

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.