Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using WinApi with HTML

Status
Not open for further replies.

rohitpabby

Programmer
Aug 13, 2001
27
IN
Can we call and use Winapi functions in HTML pages? please help...

Thanks.
 
Yes, but only with ActiveX. If you know VB or VC++ then it would be no problem at all. Check out one of the VB forums here, they are very good.

To the best of my knowledge, it is not possible to use the Windows API in straight HTML, or even js or vbscript. It's a security feature, really, because if you could, you could format someones harddrive, steal sensitive information, or lots of other dangerous little things, all before the page even loads, or by <BODY onLoad=&quot;vbscript:FormatHD()&quot;>

ActiveX can do it, because you need to set browser permission for an ActiveX control to work.

Kevin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top