I would use an appropriate tool such as
httrack and not waste my time in trying to coax this out of a tool such as
curl. Here's how you can download the URL that you're asking about, I did it myself and it even works just fine in Chrome!
$ httrack http://www.w3schools.com/sql/default.asp
Mirror launched on Sat, 13 Sep 2014 22:50:32 by HTTrack Website Copier/3.48-19 [XR&CO'2014]
mirroring http://www.w3schools.com/sql/default.asp with the wizard help..
Done.57: www.w3schools.com/sql/trysql_view.asp?x= (0 bytes) - OK
Thanks for using HTTrack!
After it's complete I'm left with the following directory structure:
$ ls -l
-rw-r--r--. 1 slm slm 4243 Sep 13 22:50 backblue.gif
-rw-rw-r--. 1 slm slm 181 Sep 13 22:51 cookies.txt
-rw-r--r--. 1 slm slm 828 Sep 13 22:50 fade.gif
drwx------. 2 slm slm 4096 Sep 13 22:51 hts-cache
-rw-rw-r--. 1 slm slm 736 Sep 13 22:51 hts-log.txt
-rw-r--r--. 1 slm slm 5057 Sep 13 22:50 index.html
drwxr-xr-x. 3 slm slm 4096 Sep 13 22:50 www.w3schools.com
To check things out simply navigate to the
index.html file at the root level and you'll be greeted with the following page:
Clicking the link will take you to your downloaded pages:
And just for measure, here I'm clicking one of the side links to demonstrate that it can navigate just fine.