Results 1 to 3 of 3

Thread: javascript like <a href="hello.htm" target="frame1">

  1. #1

    Thread Starter
    PowerPoster i00's Avatar
    Join Date
    Mar 2002
    Location
    1/2 way accross the galaxy.. and then some
    Posts
    2,390

    javascript like <a href="hello.htm" target="frame1">

    ok i want something to trigger a javascript event simmilar to this equivlent in html:

    <a href="hello.htm" target="frame1">

    i know about location.href in javascript but can't work out how to specify a target

    .... also the target is not a child frame ... but a subframe in the parents form

    thanks kris

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    frames['framename'].window.location = 'yomomma.html';


    Is that what you mean?

  3. #3
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    parent.frames['frameid'].location.href = "yomamma.html";

    Unlike the frog's, this works if it's the parent's frame. And in other browsers than IE, I think assigning directly to location is only supported in IE, though I'm not sure about this.
    All the buzzt
    CornedBee

    "Writing specifications is like writing a novel. Writing code is like writing poetry."
    - Anonymous, published by Raymond Chen

    Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width