3

I’m quite new to Javascript and I have a question about loading a webpage into a div element (‘content-window’) on my website. I want to open a webpage in that div, in this case http://www.fdsa.com?ID=1. I’ve to write the following line in order to select the div element.

var sidediv = document.getElementById('content-window');

Can someone tell me how can I load a webpage into this side div? I’ve tried a lot (but I’ve failed of course). For example, the following line won’t work:

sidediv.location.assign = "http://www.fdsa.com?ID=1";

Thanks in advance!