The Holy Bible, English Standard Version

For Webmasters: Linking to the ESV

Creating a Form

To add this form to your website:


(e.g., John 1 or God's love)

Use the following code:

<form action="http://www.gnpcb.org/esv/search/" id="esvsearchform" method="get">
<p>
<label for="esvinput">Search the ESV Bible</label>
<input type="text" name="q" id="esvinput" size="20" maxlength="255" />
<input type="submit" name="go" id="esvsearchbutton" value="Search" />
<br />
<small>(e.g., <em>John 1</em> or <em>God's love</em>)</small>
</p>
</form>

What does the <label> tag do? On browsers that support it, clicking the text contained in the <label> tag will put the cursor inside the associated text box. Click above to see if your browser supports it.

When a visitor clicks the button that submits the form, he or she will come to this site, so you may wish to have the page open in a new window. To create this behavior, change the <form> tag to read:

<form action="http://www.gnpcb.org/esv/search/" id="esvsearchform" target="_blank" method="get">

You are free to change any of this code, though please note that neither the form's action attribute nor the name="q" attribute of the text <input> should change, or else the form won't work as intended.

Creating a Link

The best way to make a link to us is to enter the query you want and note the address of the result page. Copy-and-paste the address into your website creation software to make a link, and you're done. An example link looks like:

<a href="http://www.gnpcb.org/esv/search/?q=John+3:16">John 3:16</a>.

Using Javascript

Using one line of Javascript code, you can create a page that displays the text of passages of your choosing. Learn more about using Javascript...

Using the Web Service

If you know a little bit of programming, you can display the text of the ESV directly on your site using our web service. Learn more about the web service...

Questions? Email webmaster@gnpcb.org.

Gospelcom.net Alliance Member