Results 1 to 4 of 4

Thread: interact with explorer windows

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    75

    interact with explorer windows

    hi.
    my question is about internet explorer tools-bar.
    i added a new button that need to open a html file for example on the left side of the window.

    in the html file is need to be interact with the main window.

    how can i do that.
    how can i make those interact without open a new windows.

    thanks.

  2. #2
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: interact with explorer windows

    well, after playing around for a while i finally figured it out...

    HTML Code:
    <html>
    <body>
    <a onclick="win1=open('name_of_this_file','winname','width=200,height=200')">click</a><br />
    <a onclick="win1.document.bgColor='lightgreen';win1.focus()">click here</p>
    </body>
    </html>
    well it looks simple and all, but the only thing i found was... lets say you want to open google... just replace "name_of_file" with "http://www.google.com" but then the color change wont work because it will be outside your domain.

    to get around that, try playing around with frames.
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Apr 2005
    Posts
    75

    Re: interact with explorer windows

    thanks, but the problem is that it open a new window.
    i want it to change the main window.
    i dont think its about playing with the frame because the application is outside the site.
    so how can i do that, how can i change the content of the internet explorer without open a new one?

  4. #4
    Fanatic Member ALL's Avatar
    Join Date
    Jul 2004
    Location
    192.168.1.1
    Posts
    711

    Re: interact with explorer windows

    it would be somthing like this, but i cant get it to work, so try playing around with it:
    HTML Code:
    <html>
    <body>
    <iframe id="frame1" src="http://www.google.com" width="100%" height="100%">Your browser does not support iframes</iframe>
    <a onclick="JavaScript: document.getElementById('frame1').style.backgroundColor='blue';">click</a>
    </body>
    </html>
    Please support one of my projects?
    TKForums.com

    Web Forum
    JavaScript Wiki
    ________________________
    If somone helps you, please rate their post, by clicking the to rate their post

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