Bonjour à tous,

Je souhaite que les résultats de ma recherche avec google s'ouvre dans une fenêtre spécifique et non "une nouvelle fenêtre générique" comme l'option par défaut de Google
J'ai bien découvert cette class : .setLinkTarget(linkTarget) mais je ne sais pas comment l'utiliser.

Qqu'un a une idée ?

D'avance merci

mon code
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
    <script language="Javascript" type="text/javascript">//<![CDATA[ 
 
      function OnLoad() { 
 
        // create a search control 
        var searchControl = new GSearchControl(); 
 
        // web search, open, alternate root 
        var options = new GsearcherOptions(); 
        options.setExpandMode(GSearchControl.EXPAND_MODE_OPEN); 
        options.setRoot(document.getElementById("somewhere_else"));
        searchControl.addSearcher(new GwebSearch(), options);
 
        var options1 = new GsearcherOptions(); 
        options1.setRoot(document.getElementById("somewhere_else")); 
        searchControl.addSearcher(new GlocalSearch(), options1); 
 
        var options2 = new GsearcherOptions(); 
        options2.setRoot(document.getElementById("somewhere_else")); 
        searchControl.addSearcher(new GblogSearch(), options2);
 
        // tell the searcher to draw itself and tell it where to attach 
        searchControl.draw(document.getElementById("search_control")); 
 
        // execute an inital search 
//        searchControl.execute("Ferrari Enzo"); 
      } 
      GSearch.setOnLoadCallback(OnLoad); 
    //]]> 
    </script>