Submit webform via URL only?

前端 未结 2 952
小鲜肉
小鲜肉 2021-01-13 17:39

I\'m not really sure this belongs here, so instead of downvoting just lemme know if so and I\'ll quickly move it on.

Anyway, there is a website that has a search pag

2条回答
  •  清酒与你
    2021-01-13 18:27

    Edit: It is not possible to create a link directly to the first page. However, you can easily send a user to the first page by by creating a form:

    And then submitting the form whenever the user clicks a psuedo-link:

    document.getElementById("postForm").submit();
    

    This can also be done by typing JavaScript code into the address bar:

    javascript:a=document.createElement("form");a.method="POST";a.action="http://www.torec.net/‌​ssearch.asp?search=dark&page=2";i=document.createElement("input");i.name="search";i.value="q";a.appendChild(inpu‌​t);a.submit();

提交回复
热议问题