Find UNdata on Facebook Follow UNdata on Twitter Please send us your feedback
Include a link from your web page to UNdata and allow users to directly search UNdata from your site.
  • Help your users to find and access official statistics from a variety of sources
  • Promote UNdata as the global resource for official statistics

Adding a search box

There are two ways to include the UNdata search bar in your web site:{BR}
  1. by using an iframe (simple)
  2. by hosting the required code on your web server (flexible)

1. IFRAME

The iframe element creates an inline frame containing an HTML document served from UNSD's web server. The length of the search bar will adjust to fill its container.

HTML
       <div style="width: 99%"> <!--- Width set for correct rendering in IE -->
          <iframe height="70" width="99%" style="border: none" scrolling="no"
          src="http://unstats.un.org/drs/services/remotesearch/v1/remotesearch.html" 
          frameborder="0"></iframe>
       </div>
    
Result

2. Self hosting

To display a UNdata search box in your web page, include the following code in the appropriate sections. The supporting Javascript file is available for download here.

HTML

Header
    <script type="text/javascript" src="RemoteSearch.js"></script>

Body
   <a href="http://data.un.org">
	  <img id="logo" src="logo_vsmall.png" alt="UNdata logo" 		
	     style="margin:0;padding:0;border:0;vertical-align:middle;"
	  />
   </a>
   <input id="terms" name="terms" value="" type="text" 
	  onkeypress="enterKeyWillClick('go', event);" 
	  style="margin:0;padding:0;vertical-align:middle;" 
   />
   <input id="go" name="go" type="button" 
	  onclick="searchFor('terms');" value="Go"
	  style="margin:0;padding:0;vertical-align:middle;"
   />

Javascript
Available for download here.

Result

UNdata logo




Logo

Just right click on the images and select "Save image" from the menu to download the logos. You can choose from three different sizes. UNdata logo
Size: 253x97 pixels

UNdata logo
Size: 144x55 pixels

UNdata logo
Size: 100x38 pixels

Copyright © 2024 - Conditions of Use
United Nations Statistics Division
Version