Problem with div tags in mozilla

Need technical advice on coding your web pages? Covers HTML, JavaScript, CSS, and some server side technologies. Also the issue of some webpages not displayed well.

Moderator: Don_HH2K

Problem with div tags in mozilla

Postby vikramrao2002 » Fri 12 Dec, 2003 7:39 am

When I pass a string containing <div> tag to insertadjacenthtml it works perfectly well but it does not get inserted in NS6 and mozilla.
the string is of type

elstr = "<div id =" + whichEl + " style='position:absolute'></div>"

menuloc.document.body.insertadjacenthtml("beforeEnd",elstr);

Instead of passing elstr if i pass some string it works perfectly.
what is the error :?:
UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)
vikramrao2002
new member
new member
 
Posts: 1
Joined: Fri 12 Dec, 2003 7:08 am

Return to Web Design and Page Coding

Who is online

Registered users: Google [Bot], Yahoo [Bot]