Re: OnNewWindow with javascript url?



Not really. BeforeNavigate2 does get the javascript:url. I don't cancel
it or anything, and that's the last callback I get really. I figured
out why I'm getting the NewWindow2/3 -- it's only when I hold down the
SHIFT key which is supposed to launch in a new window. *However* -- if
I regular click on the image, I *only* get the BeforeNavigate2 and
nothing else!

I do have an event sink for HTMLTextContainerEvents2::onclick which is
hooked up to the image as well. So when the user clicks on the image,
I get the onclick event, and I am returning VARIANT_TRUE from there.
Then my BeforeNavigate2 gets called with the javascript url, and then I
don't get any other calls. So here is the chain of events right now:

1. User clicks on the image (no SHIFT held down..just regular click).
2. Receive HTMLTextContainerEvents2::onclick --> return VARIANT_TRUE.
3. Receive BeforeNavigate2 with the javascript URL. Don't do anything
in this function.
4. *** nothing else happens *** I do not get a NavigateComplete, nor
a OnNewWindow2/3 at all.

.