Skip navigation

Widgets and Buttons

MedlinePlus makes trusted, reliable health information easily accessible in a variety of formats, including widgets and buttons. The instructions below describe how to embed the widgets and buttons on your own Web site.

For more information about how to link to MedlinePlus, please see our linking to MedlinePlus page.

Widgets

Widgets are small applications that allow you to access MedlinePlus content directly from your own Web sites. You can embed the following widgets in blogs, personalized homepages, and other Web sites. Once you embed the widget on your site, MedlinePlus takes care of the technical maintenance and updates the content automatically.

Search Cloud Widget

The search cloud widget displays the most frequently searched terms on MedlinePlus. This widget is usually updated each weekday, and it is a smaller version of the full-sized MedlinePlus search cloud.

Copy this code for the search cloud widget:

<script type="text/javascript" src="http://www.nlm.nih.gov/medlineplus/jslib/mpluswidget-us.js"></script> <div id="mpluswidget-us"><noscript>To use the MedlinePlus search cloud widget, please enable JavaScript.</noscript></div>

Search Box Widgets

We welcome you to place the MedlinePlus search box on your Web site as long as you clearly identify the box as belonging to MedlinePlus, display the search results in their own window (not in a frame), use the exact search code provided below, and link the word MedlinePlus to the MedlinePlus homepage (http://www.nlm.nih.gov/medlineplus/).

To put the MedlinePlus search box on your own page and open the results in the same window, copy this code:

<form method="get" action="http://www.nlm.nih.gov/search/medlineplus" title="MedlinePlus Search input" target="_self"> <label for="medlineplus">Search <a href="http://medlineplus.gov/">MedlinePlus</a>: </label>   <input type="text" name="query" size="20" maxlength="250" id="medlineplus"/> <input type="image" src="http://www.nlm.nih.gov/medlineplus/images/search.gif" align="absmiddle" width="57" height="24" border="0" title="Search" alt="Search"/> </form>

To put the MedlinePlus search box on your own page and open the results in a new window, copy this code:

<form method="get" action="http://www.nlm.nih.gov/search/medlineplus" title="MedlinePlus Search input" target="resultwindow"> <label for="medlineplus_new_window">Search <a href="http://medlineplus.gov/">MedlinePlus</a>: </label>    <input type="text" name="query" size="20" maxlength="250" id="medlineplus_new_window"/> <input type="image" src="http://www.nlm.nih.gov/medlineplus/images/search.gif" align="absmiddle" width="57" height="24" border="0" title="Search" alt="Search"/> </form>

Buttons

You can use the following buttons to link to the MedlinePlus on your own Web site. The corresponding code for each button appears directly beneath the image. Paste the desired HTML code directly into your page.

MedlinePlus

<a href="http://www.nlm.nih.gov/medlineplus/"><img src="http://www.nlm.nih.gov/medlineplus/images/mplussm.gif" alt="MedlinePlus" width="120" height="25" /></a>

MedlinePlus Trusted Health Information for You

<a href="http://www.nlm.nih.gov/medlineplus/"><img src="http://www.nlm.nih.gov/medlineplus/images/mpluslinksm.gif" alt="MedlinePlus Trusted Health Information for You" width="179" height="35" /></a>

MedlinePlus Trusted Health Information for You: A service of the National Library of Medicine

<a href="http://www.nlm.nih.gov/medlineplus/"><img src="http://www.nlm.nih.gov/medlineplus/images/mpluslinkmed.gif" alt="MedlinePlus Trusted Health Information for You: A service of the U.S. National Library of Medicine, NIH National Institutes of Health" width="200" height="110" /></a>