Results 1 to 5 of 5

Thread: Javascript of BACK and OPEN

  1. #1
    Join Date
    May 2005
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question Javascript of BACK and OPEN

    I need to know the javascript codes of these orders:

    - Back to previous page "History"
    - Open same page in a whole window (from a framed page)

    Thanks

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    - Back to previous page "History"
    history.back() or history.go(-1)
    - Open same page in a whole window (from a framed page)
    This isn't Javascript. The link should look like this:
    <a href="foo.htm" target="_top">bar</a>
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    May 2005
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    This isn't Javascript. The link should look like this:
    <a href="foo.htm" target="_top">bar</a>
    I need a single script to put it as a template for all links. I know the manual method.
    Last edited by Haisook; 09-28-2005 at 09:12 PM.

  4. #4
    Join Date
    May 2005
    Posts
    52
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    Quote Originally Posted by Twey
    history.back() or history.go(-1)
    What's the difference between each? The second one doesn't work if it's clicked from a previously maximized page from a frame. It goes back to the homepage of the frame, not the previous one.

    Hope you understand this.. lol .. I know it's kinda confusing...

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    There is no difference, I believe. However, if you're experiencing problems with one, obviously use the other.
    I need a single script to put it as a template for all links.
    HTML Code:
    <base target="_top">
    in the head.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

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
  •