Home >Web Front-end >HTML Tutorial >How is it possible to jump to the reply form position on this page when clicking the 'Reply' button in a post?_html/css_WEB-ITnose

How is it possible to jump to the reply form position on this page when clicking the 'Reply' button in a post?_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:19:311462browse

Reply Jump to this page to a specific location

When you click the "Reply" button in a post, it will jump to the reply form location on this page. How to achieve this? You need to write code.

Reply to discussion (solution)

Should be made with anchors. . .



Jump to target

1. Use the anchor point
2. Use the focus() of the reply box. document.getElementById('ID of the reply box').focus();

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn