Track number
If this element ID is hovered / clicked, the iframe with the package tracking results will be added to the DOM
Frame height, where the package tracking results will be displayed. The default value is 370.
Frame width, where the package tracking results will be displayed. By default, it is stretched to the entire width of the container.
UI language, default language is automatically detected based on the browser settings.
<!--Elements followed by the created frame with the package tracking results.-->
<button id="pkge-track-1-test">ZA871946730HK</button>
<button id="pkge-track-2-test">5610177923517</button>
<!--The script required for the widget's work. It can be inserted at the end of the page.-->
<script type="text/javascript" src="https://pkge.net/externalwidget.min.js"></script>
<script type="text/javascript">
document.addEventListener('DOMContentLoaded', function () {
PKGEExtWidget.trackButton({ //Optional. Track number
'trackNumber': 'ZA871946730HK',
//Optional. If this element ID is hovered / clicked, the iframe with the package tracking results will be added to the DOM
'elementId': 'pkge-track-1-test',
//Required. Frame width, where the package tracking results will be displayed. By default, it is stretched to the entire width of the container.
'width': 460,
//Required. Frame height, where the package tracking results will be displayed. The default value is 370.
'height': 370,
//Required. UI language, default language is automatically detected based on the browser settings.
'language': 'en'
});
PKGEExtWidget.trackButton({ //Optional. Track number
'trackNumber': '5610177923517',
//Optional. If this element ID is hovered / clicked, the iframe with the package tracking results will be added to the DOM
'elementId': 'pkge-track-2-test',
//Required. Frame width, where the package tracking results will be displayed. By default, it is stretched to the entire width of the container.
'width': 460,
//Required. Frame height, where the package tracking results will be displayed. The default value is 370.
'height': 370,
//Required. UI language, default language is automatically detected based on the browser settings.
'language': 'en'
});
});
</script>