Search code examples
javascripthtmlcordovamobileintel-xdk

How to display an external site but keep an application header


I'm new to Phonegap and am playing around in Intel XDK. How can I load an external site but maintain my own header?

Right now, all I'm doing to load the site is

window.location = "http://google.com";

I want the image on the right. enter image description here

EDIT: Using iframe has been suggested. I tried this, but I can't get the browser part fullscreen.

    <iframe src="http://www.google.com/" style="width:100%; height:100%;">

enter image description here


Solution

  • Seeing as you've tagged html I assume we could use an iframe. In your case try adding something along the lines of <iframe src="http://www.google.com"></iframe> and then style it to your pleasing.

    Take a look at this webpage for more information on iframes.