Skip to main content Accessibility Feedback

Demo: Opening Pets in a New Tab

By default, the pet listing on Petfinder opens in the current window. You can open a new window or tab using the newTab settings.

Loading...

What to put on your site

<link rel="stylesheet" type="text/css" href="/css/fetch2.css">
<script src="/css/fetch2.js"></script>

<div data-fetch>
    <p>Loading...</p>
</div>

<script>
    new Fetch('[data-fetch]', {
        key: 'YOUR API KEY',
        secret: 'YOUR API SECRET',
        shelter: 'YOUR SHELTER ID'
    }, {
        newTab: true
    });
</script>

If you’re using WordPress

[fetch2 key="YOUR API KEY" secret="YOUR API SECRET" shelter="YOUR SHELTER ID" newtab="true"]
Loading...
[/fetch2]