Sample NTPT HTML page.
This
link
will fire an ntptLinkTag() on its target when clicked, waiting a maximum of two seconds to ensure the tag is sent.
This is the
same link
, but the global default delay (defined in ntpagetag.js) is used.
This is the
same link
, but no delay is used.
This is the
same link again
, but it is implemented with ntptEventTag() instead of ntptLinkTag().
This checkbox (
) will fire an ntptEventTag() from its
onchange
attribute, adding the 'mybox_changed=1' pair. On form submission, its value will be sent as 'mybox' in the ntptSubmitTag() call.
This text input (
) will fire an ntptEventTag() from its
onchange
attribute, adding the 'mytext_changed=1' pair. On form submission, its value will be sent as 'mytext' in the ntptSubmitTag() call.
The
method for this form will trigger an ntptSubmitTag() set in the <form>
onsubmit
attribute. It will delay
3
1.5
1
0 (global default)
-1 (no delay)
seconds to submit the form. NOTE: This form POSTs to itself, which is invalid, but the purpose is simply to show the tag.