Place Bid (optional)
Why add this widget?

Frontend implementation
Syntax
Parameters
Example usage
Last updated

Last updated
window.TNB(methodName, settings)<!-- 1. Load TheNextBid SDK -->
<script>
(function(d, w, s, id){
if (d.getElementById(id)) {return;}
w.TNB = function(){w.TNB.calls.push(arguments)}; w.TNB.calls = [];
var js, x = d.getElementsByTagName(s)[0];
js = d.createElement(s); js.id = id; js.async = true;
js.src = 'https://thenextbid.com/sdk-v.1.0.js'
x.parentNode.insertBefore(js, x);
}(document, window, 'script', 'thenextbid-jssdk'));
</script>
<!-- 2. Custom button to place a bid -->
<button id="bid-button">Place my bid!</button>
<!-- 3. Open the widget when needed -->
<script>
document.getElementById('bid-button')
.addEventListener('click', function () {
window.TNB('placeBid', {
// Replace the objectId with the ID for the listing on
// this page. More info here:
// https://thenextbid.gitbook.io/widgets/sourcenames-and-object-ids
objectId: '12345678',
// Replace the sourcename with the static name provided by
// TheNextBid. More info here:
// https://thenextbid.gitbook.io/widgets/sourcenames-and-object-ids
sourceName: 'voorbeeldmakelaar'
});
});
</script>