Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  • Users: rctek
  • Order by date
  1. rctek

    Adding html to DOM

    Brillant! Thanks for you help.
  2. rctek

    Adding html to DOM

    I wanted to make the script very reusable and be able to just drop it into the head. At the bottom of my javascript file I had this window.onload = OPbannerToDOM('somevalue'); I was thining this would run once everything in the page had loaded? Was this the right way to do this?
  3. rctek

    Adding html to DOM

    Thanks - I totally forgot that method. I do however have an issue, both methods cause an error? document.getElementsByTagName("body")[0] is undefined document.getElementsByTagName('body')[0].appendChild(bnr); Is that because the script is in the head and the body has yet to load?
  4. rctek

    Adding html to DOM

    Hi all, I'd like to add some html to the top of the body tag. I was thinking something like this snippet below. However, the commented out line adds it to the html tag inbetween the head and body and the next line doesn't work var bnrContent = ""; var bnrLink = ""; var bnrContentHTML =...

Part and Inventory Search

Back
Top