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.
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.
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?
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>