Javascript and IE Webbands

J

John

Hello all.
Hopefully someone who is familiar with IE's webbands can help me with
this one.

I've made a webband in IE, that shows up at the bottom of the screen
(much like the "Tip of the Day" explorer bar.. actually, exactly like
that, except that it loads a specific local page. On this page that
loads, i would like to be able to get the URL of the main window. I've
tried the following, with no avail...


Code:

document.getElementById('mainLoc').firstChild.data =
parent.document.frames[0].location;

document.getElementById('mainLoc').firstChild.data = parent.location;

document.getElementById('mainLoc').firstChild.data = window.location;

document.getElementById('mainLoc').firstChild.data =
external.menuArguments.document.location;

document.getElementById('mainLoc').firstChild.data =
external.window.document.location;
---------------------------------------


Unfortunately, none of these will return the URL of the main window.
I realize Javascript has security functions, to prevent getting
information from a frame outside the domain, but does this apply to
local pages? does it also apply to IE webbands?

Also, i would like to be able to get the body text of main page, which
im sure i can figure out, once i find out how to get the URL.. if at
all possible anyway.

I've search google for quite a bit now, but have not been able to find
very much information regarding webbands, and code samples.. Most
places try to charge you money just for the application and samples to
create what can be done in minutes with the registry.. So if anyone
knows a good source of information, i would appreciate it!


thanks again!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,236
Members
46,825
Latest member
VernonQuy6

Latest Threads

Top