add param value to all object with javascript

Discussion in 'JavaScript' started by kakkalo, Mar 25, 2009.

  1. #1
    is there any way to add a param tag to all the object with a page. say i want to add <param name="wmode" value="transparent" /> to all the object. how can i make that happen.
     
    kakkalo, Mar 25, 2009 IP
  2. xlcho

    xlcho Guest

    Messages:
    532
    Likes Received:
    8
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can get all the elements with document.getElementsByTagName('object') and then add the <param> tag to their innerHTML.
     
    xlcho, Mar 26, 2009 IP