SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    May 2000
    Location
    Ljubljana
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm sort of a newbie with the Java, so help would really be appreciated...

    The problem is:

    I have an intro page with an image, which when clicked on it, opens a new (the "main page") page, which is filled with frames...
    When I place in one of this frames an image and add to it "onClick=window.close()" it does nothing...I tried every possible combination I could, asked some folks, but came up with nothing...

    It works fine when I try it with a page that has no frames, but when I implement it in the frames, it just does nothing. There is probably (hopefuly a more or less easy solution to this, but I havent been able to find it...



  2. #2
    SitePoint Member
    Join Date
    May 2000
    Location
    Ljubljana
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Heh, please somebody?

    I need this as soon as possible, it's the last thing holding me to put the homepage online..

  3. #3
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Try this:

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre>
    onclick="top.close()"
    [/code]



    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!

  4. #4
    SitePoint Member
    Join Date
    May 2000
    Location
    Ljubljana
    Posts
    3
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Argghh!

    I tried like everything I could come up with - self/parent/top.window.close(), but I never thought of or tried changing "window" with those things...it works!

    Thanks a milion times, Kyank!

  5. #5
    SitePoint Author Kevin Yank's Avatar
    Join Date
    Apr 2000
    Location
    Melbourne, Australia
    Posts
    2,571
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    That's what I'm here for!


    ------------------
    -Kevin Yank.
    http://www.SitePoint.com/
    Helping Small Business Grow Online!

  6. #6
    Don't get too close, I bite! Nicky's Avatar
    Join Date
    Jul 1999
    Location
    Lancashire, UK
    Posts
    8,277
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I think you mean JavaScript! Many people get confused but it is totally different to Java.

    ------------------
    Webmaster of Gib-Online Dot COM (or webmistress for that matter!)
    www.gib-online.com
    The Rock of Gibraltar on the WEB




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
  •