25 users online (2 members and 23 guests)  


  Results 1 to 3 of 3

Related

  1. SuperCom Object    Forum: Javascript Forum
    Replies: 1
  2. navigation object in multiple frames    Forum: Javascript Forum
    Replies: 1
  3. Autostart with embed object    Forum: HTML Forum
    Replies: 2
  4. More then one fixed object.    Forum: CSS Forum
    Replies: 7
  1. #1
    Grand Mamamo's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2005
    Posts
    11

    Smile Change object tag content...

    Hi !

    Could you let me know how to change the object tag content ?

    It could be something like that :

    <object
    id="tarmac"
    data="Site/bvwb.gif"
    >
    </object>

    <a
    onclick="document.getElementById('tarmac').location='Site/h1.php'"
    >
    change

    But that one doesn't work.

    Thanx for your help !

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662

    Re: Change object tag content...

    Hi,

    These are pure guess, but try:

    Code:
    document.getElementById("tarmac").src = 'Site/h1.php'
    I doubt it will work though. To be honest, why are you trying to use an object like an iframe?
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    Grand Mamamo's Avatar
    New User

    Status
    Offline
    Join Date
    Mar 2005
    Posts
    11

    Smile Thanx for your anwer, QuietDean !

    Thanx for your anwer, QuietDean !



Tags for this Thread