HTML

write,writein.

HTML

Written by VR Sunday, 06 March 2011 17:45

When invoked as the page loads these methods can dynamically add content to the page.When invoked after the page has loaded,a single method invocation clears the current document,opens a new output stream and writes the content to the window or frame.A document.close method is required afterward.Because the first document.write or document.writein method destroys the current document do not use two or more writing statements to create a new document.Instead load the content in to one variable and pass that variable as the parameter to a single document.write or document.write method.The different between the two methods is that document.writeIn adds a carriage returns to the source code it writes to the document.This is not reflected content,but can make reading the dynamic source code easier in browser versions that support dynamic content source viewing.

 

ParentElement.

HTML

Written by VR Sunday, 06 March 2011 15:22

Returns a reference to the next outermost element in the HTML containment hierarchy.An element's HTML parent is not necessarily the same as the object returned by the offset Parent property.The parent Element concerns itself strictly with source code containment while the offset Parent property looks to the next outermost element that is used as the coordinate system for measuring the location of the current element.For example if the main document contains a P element with an EM element nested inside the EM element has two parents.The P elements is the returned parent Element value while the BODY element is the returned offset parent value.

Outer HTML.

HTML

Written by VR Sunday, 06 March 2011 15:14

The rendered text and HTML tags including the start and end tags of the current element.If you want only the rendered text,see outerText.For the source code that excludes the element's tags see innerHTML.A change to this property that includes HTML tags is rendered through the HTML parser,as if the new value were part of the original source code.You may change this property only after the document has fully loaded and in the process,you can even change the type of element it is or replace the element with straight text content.Changes to the outerHTML property are not reflected in the source code when you view the source in the browser.To add to existing HTML,see the insertAdjacentHTML() method.

 

TEXTAREA.

HTML

Written by VR Wednesday, 02 March 2011 18:20

The TEXTAREA element is a multiline text input control primarily for usage inside FORM elements.Unlike the text type INPUT element,a TEXTAREA element can be sized to accept more than one line of text.Word-wrapping is available on more recent browsers and users may enter carriage return characters inside the text box.When a TEXTAREA  element is inside a submitted form,the name/value pair is submitted with the value being the content of the text box.The CGI program on the server must be able to handle the possibility of carriage returns in the text data.

If you wish to display text in the TEXTAREA element when it loads that text goes between the start and end tags;otherwise there are no intervening characters in the source code between start and end tags.A label for the TEXTAREA element must be placed before or after the element and may,optionally in newer browsers be encased in a LABEL element for structural purposes.

TD.

HTML

Written by VR Wednesday, 02 March 2011 18:13

The TD element is a container for content that is rendered inside one cell of a TABLE element.One cell is the intersection of a column and row.Other elements related to the TD element are CAPTION,COL,COLGROUP,TABLE,TBODY,TFOOT,TH,THEAD,and TR.In addition to providing a wrapper for a cell's content the TD element defines a number of visible attributes that apply to a single cell,often overriding similar attributes set in lesser-nested elements in the table.

Four attributes-ABBR,AXIS,HEADERS and SCOPE-have been added to the HTML specifications in anticipation of non visual browsers that will use text to speech technology to describe content of an HTML page a kind of "verbal rendering".Although these attributes are briefly described here for the sake of completeness,there is much more to their application in non visual browsers than is relevant in this book on Dynamic HTML.

 

Page 1 of 19

«StartPrev12345678910NextEnd»

Login Form (Can use your Gmail Acct)

Latest Comments

Copyright © 2017 Interview Questions, Tutorials, Certification Questions. All Rights Reserved.
Joomla! is Free Software released under the GNU/GPL License.