Getting source from adjacent frame

Discussion in 'Javascript' started by Mike, Aug 10, 2005.

  1. Mike

    Mike Guest

    Is it possible for one frame to get the source code of an adjacent
    frame of the same window?
    Mike, Aug 10, 2005
    #1
    1. Advertising

  2. Mike

    Jedi Fans Guest

    Mike wrote:
    > Is it possible for one frame to get the source code of an adjacent
    > frame of the same window?


    script:
    <script type="text/javascript"><!--
    function vs(){
    var doc=parent.FRAMENAME.location;
    window.open('view-source:'+doc+','SourceView');
    }
    //--></script>

    html:
    <a href="#" onclick="vs();return false;">View Source</a>


    /might/ work
    --
    Hope This Helped and MTFBWY...
    Kieren aka JediFans - <URL:http://jedifans.com/>
    The Force Is With Me, SuSE Linux Professional 9.3, Mozilla Firefox
    1.0.6, Mozilla Thunderbird 1.5 Alpha 2 and Revenge Of The Sith!
    Jedi Fans, Aug 10, 2005
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vee dub
    Replies:
    4
    Views:
    696
    Chris Smith
    Nov 20, 2004
  2. The Doctor

    Adjacent Tables

    The Doctor, Oct 21, 2006, in forum: HTML
    Replies:
    2
    Views:
    1,717
    Jonathan N. Little
    Oct 21, 2006
  3. Replies:
    2
    Views:
    332
    Keith Thompson
    Mar 15, 2006
  4. Jarkko Kuoppamäki
    Replies:
    11
    Views:
    774
    Jonathan N. Little
    Jan 14, 2008
  5. richard
    Replies:
    1
    Views:
    412
    dorayme
    Mar 31, 2008
Loading...

Share This Page