0

I want to open a webpage main.html, which is located in same directory of index.html.

Now using iframe, it is opening but I don't want to use iframe or any other script except Javascript.

Also, I'm using this in Apache Cordova Windows app, so it doesn't allow using iframe or other related ways.

Dan Lowe
  • 51,713
  • 20
  • 123
  • 112
Hammas
  • 29
  • 1
  • 7

1 Answers1

1

If you use JQuery use this:

$.get( "main.html", function( data ) {
  $( "#divID" ).html( data );
});
mhsankar
  • 423
  • 5
  • 18