Results 1 to 3 of 3

Thread: javascript

  1. #1

    Thread Starter
    Member
    Join Date
    Feb 2000
    Posts
    55
    is it possible to open an html document in a seperate frame with javascript??
    Everyone is a begginer at some time, but we all get our fame.

  2. #2
    Big D Danial's Avatar
    Join Date
    Jul 2000
    Location
    ASP.Net Forum
    Posts
    2,877
    Yes,
    There is many ways of doing it, you can simply use the "Target" property to do it or you can use the JavaScript.

    HTML
    -------------
    <frameset cols="20%,*">
    <frame src="one.htm" name="one">
    <frame src="two.htm" name="two">
    </frameset>

    <a href="new.htm" target="two">Click here</a>

    JavaScript
    -------------
    parent.frames[1].document.location.href="http://www.vb-world.net";

    [VBF RSS Feed]

    There is a great war coming. Are you sure you are on the right side? Atleast I have chosen a side.

    If I have been helpful, Please Rate my Post. Thanks.

    This post was powered by :

  3. #3
    Frenzied Member Mark Sreeves's Avatar
    Join Date
    Nov 1999
    Location
    UK
    Posts
    1,845
    you can also do

    parent.frameName.location="filename.html"

    where frameName is the name of the target frame of course
    Mark
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width