javascript - Can a form generate a hash when submitted? Pure front-end
扔个三星炸死你
扔个三星炸死你 2017-06-21 10:12:50
0
2
937

Now there is a form tag on the page, action="http://www.a.com", using get
Generally, the URL after we submit will be generated as "http://www.a. com?balbalbal"
Now I want to generate it as "http://www.a.com#balbalbal"
Change the search to hash.
Can it be achieved without using js?
Don’t want to use the window.open method

扔个三星炸死你
扔个三星炸死你

reply all(2)
学霸

Pure front-end, no js, ​​these two restrictions are too severe, it can be achieved by removing any one of the conditions.

仅有的幸福

Set anchor point, name attribute

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template