Embed wallet and network on a webpage

Hey guys, just a random thought. Is it possible to embed a wallet on a network in a webpage? Sort of like moving part of metamask and making it a permanent built-in module in a webpage. This way, users do not need to switch back and forth networks. The webpage is strictly enforced to be connected with a network. People can even create new wallet addresses directly on the webpage. If Metamask can provide this feature, it can certainly help solidify the market share.