It could work with getElementById -- View this message in context: http://osgeo-org.1560.x6.nabble.com/load-content-from-url-to-variable-in-OpenLayers-tp5053561p5053646.html Sent from the OpenLayers Users mailing list archive at Nabble.com.