PDA

View Full Version : How to insert a new Parent DOM element using DOMHelper



v.madhu
10 Nov 2009, 9:31 PM
Hi,
For example if i have the following HTML.


<html>
<form name="x" action="#">
<input type="text" name="test1" />
<input type="text" name="test2" />
<input type="submit" name="submit" />
</form>
</html>

I want to insert "body" tag using DomHelper so that the result looks like


<html>
<body>
<form name="x" action="#">
<input type="text" name="test1" />
<input type="text" name="test2" />
<input type="submit" name="submit" />
</form>
</body>
</html>

How to do this?

evant
10 Nov 2009, 9:46 PM
If you are asking for help, please post in the appropriate help forum.

Moving this.

Animal
11 Nov 2009, 12:13 AM
Hi,
For example if i have the following HTML.


<html>
<form name="x" action="#">
<input type="text" name="test1" />
<input type="text" name="test2" />
<input type="submit" name="submit" />
</form>
</html>

I want to insert "body" tag using DomHelper so that the result looks like


<html>
<body>
<form name="x" action="#">
<input type="text" name="test1" />
<input type="text" name="test2" />
<input type="submit" name="submit" />
</form>
</body>
</html>

How to do this?

You must brush up on HTML and the browser's DOM.

There will always be a body element once the DOM is ready.