VB6: Add a button to Webbrowser Intranet webpage


My Webbrowser displays an Intranet web page. I need to insert a button into the top of the page so that the User can click it and go to a specific link.

Does anyone have any idea as to how that can happen?

Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Naitik GamitSoftware DeveloperCommented:
look at this link,that is similar with your problem:

tvtechAuthor Commented:
Thanks, but I need to insert an HTML button into the Intranet webpage.
why is it labeled VB6?
Just edit the generated html to add a button...
We lack proper information on the existing intranet page to be more helpfull
Determine the Perfect Price for Your IT Services

Do you wonder if your IT business is truly profitable or if you should raise your prices? Learn how to calculate your overhead burden with our free interactive tool and use it to determine the right price for your IT services. Download your free eBook now!

tvtechAuthor Commented:
OK, I'll try again ... I am writing an application in VB6.

The app houses a Webbrowser control.

The Webbrowser control displays a page from an Intranet.

I need to insert a HTML button into a specific location on that HTML page, with a link to another page.

Does anyone know how to add a HTML button on the fly?

If the button must appear on the HTML page, you need to manipulate the DOM this can only be done trough the Internet Explorer Object trough OLE, the VB6 webbrowser control cannot do this alone.
I guess you could also try to hack it by supplying a javascript url to the navigate method, never tried that...
Also, I'm not sure it is safe to assume those hacks would continue to work with all future versions of IE.
Sorry, but I cannot help much on that subject, VB6 should be put to rest.

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
tvtechAuthor Commented:
Thanks Gauthier. Hadn't thought of that method.
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
Visual Basic Classic

From novice to tech pro — start learning today.