SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Zealot matches's Avatar
    Join Date
    Aug 2006
    Posts
    196
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    append variable to iframe src property

    Hello all,

    How do you append something to the src property of an iframe call? I know how to change the src of the iframe with the dom. I am just not clear on what to do to append a value to it.

    Thanks for any help,

    Ian

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    Hobart, Australia
    Posts
    81
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Try something like:
    Code:
    document.getElementById('iframe').src = document.getElementById('iframe').src + '?a=b';
    frames['iframe'].location.href = frames['iframe'].location.href + '?a=b';
    source


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
  •