target="_blank" in Html Email
Posted: Sun Aug 25, 2024 8:57 am
As discussed in another post, if I open an HTML email and a link contains target="_blank" the link will not work. You pointed out that SimpleBrowser2 does not support multiple browser windows - all ok.
Just before using Chromium.DefaultURL and Chromium.LoadURL I now scan the HTMLBody and change those links to remove the target. I then write the HTML to a temp file and pass that instead.
Questions:
What does DefaultURL do?
I tried Chromium.LoadString rather than a temp file but ended up with an empty window - any tricks I need to do?
A minor problem with the above approach is that is that (I think) if the second window also contains a target my program has control of Chromium at that stage to try and remove targets. Is there any easy way around this - I am not too fussed with it and can easily just live with it
Thanks
Ken
Just before using Chromium.DefaultURL and Chromium.LoadURL I now scan the HTMLBody and change those links to remove the target. I then write the HTML to a temp file and pass that instead.
Questions:
What does DefaultURL do?
I tried Chromium.LoadString rather than a temp file but ended up with an empty window - any tricks I need to do?
A minor problem with the above approach is that is that (I think) if the second window also contains a target my program has control of Chromium at that stage to try and remove targets. Is there any easy way around this - I am not too fussed with it and can easily just live with it
Thanks
Ken