Thread: Html anchor tag question.

  1. #1
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,829

    Html anchor tag question.

    If you have a web page with several frames on it, is there a simple way to arrange it such that a click on an anchor tag can effect more than one frame?

    What I have is a kind of treeview type frame on one side of the screen, when I click on an item in the treeview, I want to send a new html file to the treeview frame AND replace the contents of the mainframe which occupies the majority of the rest of the screen.

    I can, of course, redraw the whole screen, but that seems a little excessive as the header and footer frames on each page would need to be drawn and these contain some images which, on a slow link, reduce the "snapiness" of the site.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  2. #2
    PC Fixer-Upper Waldo2k2's Avatar
    Join Date
    May 2002
    Posts
    2,001
    <a href="#" onclick="Javascript:leftFrame.src='whatever.html'; rightFrame.src='another.html';">Click this link to change 2 frames</a>

    where leftFrame are the name properties of the frames. I haven't done javascript for a while, but i think that's correct.
    PHP and XML
    Let's talk about SAX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Exam Question - Possible Mistake?
    By Richie T in forum C++ Programming
    Replies: 15
    Last Post: 05-08-2006, 03:44 PM
  2. opengl DC question
    By SAMSAM in forum Game Programming
    Replies: 6
    Last Post: 02-26-2003, 09:22 PM
  3. Design + HTML
    By orbitz in forum C Programming
    Replies: 8
    Last Post: 11-21-2002, 06:32 AM
  4. Very simple question, problem in my Code.
    By Vber in forum C Programming
    Replies: 7
    Last Post: 11-16-2002, 03:57 PM
  5. HTML question
    By Dave18 in forum Tech Board
    Replies: 5
    Last Post: 09-27-2002, 06:36 AM