Disclosed is an approach for providing an improved approach for searching and aggregation of searches on the internet, which allows more flexibility to perform and display search results, and also provides searching for a broad range of secondary search sites. A virtual layer is used to provide web page components to implement the searching and aggregation of search results, so that additional search results from secondary web sites can be aggregated with the search results from a primary web site. The aggregated results can then be displayed to the user at the primary search site. By using the virtual layer approach of embodiments of the present invention, this allows the aggregated search results to be placed on and overlaid with the web page from any desired search page. In addition, the searching can be specified for any secondary search sites, even sites which are not particularly with the same subject space as the primary site.