{"version":"1.0","type":"rich","title":"My link is a form...","description":"This example shows a GitHub pull request close button that submits the form directly via JavaScript instead of relying on a normal link navigation. The HTML anchor contains an inline `onclick` handler that dynamically creates a form element, sets its method to `POST`, assigns the link’s `href` as the action, and appends a hidden input carrying an authenticity token. The code uses the native DOM APIs `document.createElement`, `appendChild`, and `form.submit()` to perform the submission, preventing the default link behavior by returning `false`. No external libraries are involved; the rendering is plain HTML and CSS.","provider_name":"VizHub AI Studio","provider_url":"https://next.vizhub.com","html":"<iframe src=\"https://next.vizhub.com/viz/gist-815228?mode=embed\" width=\"960\" height=\"500\" scrolling=\"no\" frameborder=\"1\"></iframe>","width":960,"height":500,"cache_age":3600}