SitePoint Sponsor

User Tag List

Results 1 to 6 of 6

Hybrid View

  1. #1
    SitePoint Guru
    Join Date
    Mar 2004
    Posts
    639
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    What is the easiest way to change HTML inside DIV?

    Hello guys,

    I'm looking for the easiest way to change HTML inside DIV element of the page which will work in all browsers. I've googled and found solution, but people say it works only with IE.

  2. #2
    SitePoint Wizard gRoberts's Avatar
    Join Date
    Oct 2004
    Location
    Birtley, UK
    Posts
    2,439
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    innerHTML?

    Post the "IE" only solution, and maybe we can confirm it


  3. #3
    SitePoint Guru
    Join Date
    Mar 2004
    Posts
    639
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by gRoberts View Post
    innerHTML?

    Post the "IE" only solution, and maybe we can confirm it
    Yes, people say about innerHTML that it works in IE only. But I'm looking for solution for IE/Firefox/Safari/Opera.

  4. #4
    SitePoint Wizard Pepejeria's Avatar
    Join Date
    Jan 2005
    Location
    Too far up north
    Posts
    1,566
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    innerHTML is supported in all those browsers you mentioned. Something that you could have easily found out by testing.

  5. #5
    SitePoint Guru
    Join Date
    Mar 2004
    Posts
    639
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pepejeria View Post
    innerHTML is supported in all those browsers you mentioned. Something that you could have easily found out by testing.
    Well, people on many sites wrote about innerHTML doesn't work with mozilla/opera browsers, so I didn't even think to try.

    But I will try now.

    Thanks.

  6. #6
    SitePoint Guru
    Join Date
    Mar 2004
    Posts
    639
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Pepejeria View Post
    innerHTML is supported in all those browsers you mentioned. Something that you could have easily found out by testing.
    Well, people on many sites wrote about all these ready to run innerHTML functions don't work with mozilla/opera browsers, so I didn't even think to try.

    But I will try now.

    Thanks.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •