On the contrary, I embedded an SGDK2 game in a web page as a test awhile ago. There were several shortcomings:
You had to manually add the website as a trusted source for .NET assemblies.
It only works in Internet Explorer (uses Active X controls)
It had to download some temporary files to your computer
I still have it up... here:
Super Happy FunlandIn any case, my point is that it's
technically possible to embed an SGDK2 game in the browser. With some tweaks, fixes, and added plugins, these issues could be worked around.
As for Javascript, well, no, SGDK2 does not build to Javascript. BlueMonk and I talked about doing something at some point (pipe dream) to allow for building to Java. Now, I know next to nothing about Google Web Toolkit, but I do know that it takes Java code you write and converts it to HTML and Javascript (pretty fancy, heh?). These technologies would almost certainly be incompatible to begin with, and even if the hurdles were to great, you would still have a Java application which you could turn into an applet an embed in the browser.