www.webdeveloper.com
Results 1 to 5 of 5

Thread: choosing which document to work on

  1. #1
    Join Date
    May 2006
    Posts
    27

    choosing which document to work on

    hello, i have this problem, i am working on this document for example, i have html.htm, and i wanted to insert a row on it, so what i did was this:

    var x = document.getElementById('table_2').insertRow (0);

    which works well and then i wanted to put an event on it so i did this:

    x.onclick = function (event) { return display (); }

    my problem is that on the display function, i want to use another document, not html.htm such that when i do this :

    function display () {
    document.write ('hello');
    }

    would display on a specific document that i should supply like in html2.htm. how do i do this? do i make html2.htm an argument to the function? but how will i do that? is there any other way to do it aside from making it an argument?

    thank you very much!!! i really need all the help i can get...

  2. #2
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    Code:
    var newWin=window.open("html2.htm","newWin");
    ...
    newWin.document.write("hello");
    54 68 65 42 65 61 72 4D 61 79

  3. #3
    Join Date
    May 2006
    Posts
    27

    thanks but...

    thanks but when i tried it, it opened on a new window, what i wanted was for it to open an another browser i already have, how do i that, thanks! here is a link for a screenshot of my question, for you to see it more clearly in case my question is a little vague. thanks! http://i76.photobucket.com/albums/j1...ch/image_1.jpg

  4. #4
    Join Date
    Nov 2003
    Location
    Worthington, OH, USA
    Posts
    3,634
    A different browser? The screen shot looks like it may be a different frame (or iframe)...
    54 68 65 42 65 61 72 4D 61 79

  5. #5
    Join Date
    May 2006
    Posts
    27

    yes it is in a different frame too

    yes it is in a different frame too, i already found a way to pass my arguments: the frame, the browser name but i don't know what to do with these once i reach my javascript code to execute inside the function. what do i do?
    thanks!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles