user4743391
user4743391

Reputation:

Chrome Apps: Embed Website

I'm new to developing Chrome Apps, and I want to embed a website inside a popup window. This is what I tried:

<!DOCTYPE html>
<html>
  <body>
    <embed src="http://www.example.com" style="width:500px; height: 300px;">
  </body>
</html>

but it did not work. (this HTML file did launch, I tested it with a Hello World program)

Upvotes: 0

Views: 562

Answers (1)

Xan
Xan

Reputation: 77523

Nope, that is most certainly not what <embed> element is for.

What you're looking for is <webview>.

Note: this requires you to add "webview" permission to your manifest.

Upvotes: 1

Related Questions