Click to See Complete Forum and Search --> : interact with explorer windows
shucus
Jul 3rd, 2005, 06:45 AM
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.
ALL
Jul 3rd, 2005, 12:47 PM
well, after playing around for a while i finally figured it out...
<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.
shucus
Jul 4th, 2005, 07:40 AM
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?
ALL
Jul 4th, 2005, 08:40 AM
it would be somthing like this, but i cant get it to work, so try playing around with it:
<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>
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.