How does one get Browser (IE) toolbars in an HTA App?
I'm working on a web app that's embedded within an HTA. Is it possible to enable browser toolbars so i can enable utilities like Development Toolbar, or IE8's built in Developer Tools?
I'm trying to do some firebug type things without using firebug or firebug 开发者_运维技巧lite and based on my googling it seems like it might not be possible!
Thank you!
In short, no. HTA is a wrapper for the core trident engine.
It does not have browser support (like dev tools).
One option would be to write your own C# forms application, embed an InternetExplorer object, and from there you can programmatically control the existence of the menu bar, toolbars, statusbar etc with some Boolean flags.
http://msdn.microsoft.com/en-us/library/aa752084(v=vs.85).aspx
Another option would be to use the Visual Studio "Attach to process" feature and you should be able to directly attach the JS debugger to the mshta process. From there you could use the variable watch inspector to dump out a dom element node, which would include live style objects.
ymmv: How to debug IE9 HTA?
You could use something like Appcelerator Titanium for Desktop which embeds a Webkit view and Webkit Inspector. It would also allow more HTML5 features to be used.
精彩评论