Results 1 to 2 of 2

Thread: DHTML window links

  1. #1
    Join Date
    Feb 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default DHTML window links

    Im using the DHTML script to show some flash files, instead of adding links to the page I would like to just switch the IFrame window href...
    http://www.dynamicdrive.com/dynamici...htmlwindow.htm

    my idea is not working:

    <div id="dwindowcontent" style="height:100%">
    <iframe id="cframe" src="" width=100% height=100%></iframe>
    </div><a href="http://yahoo.com" target="cframe">YaHoo</a>
    </div>

    2 problems are occuring:
    1) the Iframe disapears after click the link first time.
    2) click the link a second time and a completely new window opens, when I m trying to target the iframe window

    any ideas why this is???
    // Im a newbie

  2. #2
    Join Date
    Oct 2005
    Posts
    63
    Thanks
    5
    Thanked 1 Time in 1 Post

    Default

    your code may be incorrect
    try

    <a href="#" onclick="cframe.load('iframe', 'http://yahoo.com', 'Yahoo'); return false">Yahoo</a>

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
  •