SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Addict BenANFA's Avatar
    Join Date
    Apr 2003
    Location
    Bath, UK
    Posts
    353
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Javascript from the address bar

    Does anyone else here have a hotmail account ?

    Have you noticed that when you open a link it opens in a Hotmail frameset because MS would not want you to leave their site. Now I for one find this really irritating especially as they don't put any way of exiting the frameset to just browse the link. I really do not need a message taking 1/2 inch of screen space telling me to close the window to return to Hotmail. I have complained to them but no result so I created this URL

    javascript:{location=frames[1].location;}

    On a frame set put this in your Address bar and run it and it will move the location of the given frame into the main window location removing the frameset.

    Does this work ?

    I hear you ask

    Yes

    I say

    everywhere except Hotmail. ##?!#?!!!#

    Somehow on the Hotmail site they have managed to make the location object for the 2nd frame protected so that the data can't be accessed. If anyone has any idea how they have done this I would like to hear please.

  2. #2
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    They may host it on a separate domain. Frame-based security built in to browsers doesn't allowing this sort of thing.

    Or, the frame you needs isn't index #1.
    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  3. #3
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    check

    java script:alert(frames.length);

    and see if that helps, they may also have the frames nested within other frames...


    (actually, on second thought... I don't think that code *should* work anywhere... you aren't supposed to be able to set variables using javascript in the addressbar, I don't think)
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.

  4. #4
    Web-coding NINJA! silver trophy beetle's Avatar
    Join Date
    Jul 2002
    Location
    Dallas, TX
    Posts
    2,900
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can set variables from the address bar. Even create new ones

    javascript:var blah="yippee";alert(blah);

    beetle a.k.a. Peter Bailey
    blogs: php | prophp | security | design | zen | software
    refs: dhtml | gecko | prototype | phpdocs | unicode | charsets
    tools: ide | ftp | regex | ffdev




  5. #5
    "Of" != "Have" bronze trophy Jeff Lange's Avatar
    Join Date
    Jan 2003
    Location
    Calgary, Canada
    Posts
    2,063
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OK, nevermind then.
    Who walks the stairs without a care
    It shoots so high in the sky.
    Bounce up and down just like a clown.
    Everyone knows its Slinky.


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
  •