How to get a Window handle

Hi Experts.
I have an application that is called from IE toolbar with a parameter. This parameter is the window handle (i.e. myApplication.EXE /235468) so myApplication.EXE can manipulate the content of the IE window that send the order. To Explain it more: suppose i open 10 IE windows, when i click a button on the first IE window, it will call my application.exe and send the handle of IE window No.1, if i click the same button but on the second IE window, it will call my application.exe and send the window handle for the second IE window, etc...
So how can i get the handle of the window (that send the order to myapplication) in JavaScript so i can add it to my web toolbar ??
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nothing documented.  ref: .

Closest thing would be - which is optional.  Try this in your address or location box:

Mine came back blank.

This would be OS dependent??  An OS process handle?

Peace and joy.  mvan
I think this would need ActiveX controls...
Yep, ActiveX ...

'Example of how to get the handle of excel using VBA or VB referencing Excel type library
'This is VB / VBA Code!!
Sub TestVBA(handle As Long)
    'Make Excel's caption unique, use in VBA
    Application.Caption = "MY EXCEL"
    'Find Excel's window handle
    handle = FindWindow("XLMAIN", Application.Caption)
End Sub

Of course, needs the proper includes and rewrite for JavaScript.  And would be browser specific as the "XLMAIN" would be replaced by the browser process name.  Because ActiveX, possibly applicable to IE only.

Peace and joy.  mvan
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

bbbbbb ... I guess you said "IE toolbar." ;)

Previous comment code was adapted from the 7th hit here:

Peace and joy.  mvan

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BMaadaraniAuthor Commented:
I've had the VB code to get a process handle, unfortunately I am not familiar enough with Javascript to convert it.
I do not think you can reach the window handle through any script in a pge.
By the way, as you seem to use a custom made ie toolbar, can't you do this inside this toolbar?
BMaadaraniAuthor Commented:
Good question, unfortunately I purchased bar control, and I do not have access to the bar source-code.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.