35 users online (0 members and 35 guests)  


  Results 1 to 10 of 10

Related

  1. POSTing via location.replay(URL)    Forum: Javascript Forum
    Replies: 6
  2. Drop down link location    Forum: Javascript Forum
    Replies: 3
  3. Replies: 1
  1. #1
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    About frame-location

    I need a code that changes the location of an frame. Can someone help me?

  2. #2
    rangana's Avatar
    Moderator/Allstar

    Status
    Offline
    Join Date
    Feb 2008
    Location
    Cebu City Philippines
    Posts
    317

    Re: About frame-location

    What do you meant by "location" ? Did you mean the URL?

    Could you please show us the code to where you're currently stumped.
    Checkout my porfolio.
    Please click the button when a member helped you.
    Take time to use Forum's Search function.

  3. #3
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    Re: About frame-location

    Yes, I mean the URL. You know the code location.href=""
    But if I use this code in a frameset, it will only work in
    the current frame. Is it possible to let it work in another frame?
    Im making a navigation frameset.

  4. #4
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: About frame-location

    you should be able to just use the target attribute like is standard in frames but if you would raather do it in js

    Code:
    self.frames['thatframe'].location.href =
    where 'thatframe' is the name of your target frame.

    D
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  5. #5
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    Re: About frame-location

    thanks

  6. #6
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    Re: About frame-location

    I will not work... nothing happens.

  7. #7
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: About frame-location

    you are going to need to post your code.
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  8. #8
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    Re: About frame-location

    This is my code:
    HTML Code:
    <input type="button" value="test" onclick="self.frames['showframe'].location.href='test.html'" />
    Last edited by adamsen; 02-28-2009 at 03:25 AM. Reason: Two wrong spaces

  9. #9
    HTML's Avatar
    Administrator

    Status
    Offline
    Join Date
    Aug 2000
    Posts
    3,445

    Follow HTML On Twitter Add HTML on Facebook Add HTML on Google+ Add HTML on Linkedin Visit HTML's Youtube Channel

    Re: About frame-location

    Do you have it uploaded where we can see what it does as well as the rest of the code?
    AHFBWEB Less customers per server, more power for you!

    Business Class Shared Hosting

  10. #10
    adamsen's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Jan 2009
    Location
    Denmark
    Posts
    128

    Re: About frame-location

    No, its not uploaded yet, but I have
    attached the files:
    Attached Files Attached Files



Tags for this Thread