To describe your problem, I want to create a search box similar to the following. when users enter a value, clicking the options above will jump to different links, for example, I enter qq, click "news" above to jump to news.sogou.com? Kwqq or click "" above to jump...
Describe your problem
I want to create a search box similar to the following. when a user enters a value, clicking the options above will jump to different links,
For example
For example, I enter qq,
Click "news" above to jump to news.sogou.com /? Kw = qq
Or click "" above to jump to hweixin.sogou.com /? Kw = qq
Or click "ask" above. Will jump to wenwen.sogou.com /? Cid = qq
.........
When you enter a value, clicking the options above will jump to different links and how to write with javascript + html. Please refer to the complete code. Thank you. I am an artist,
Reply content:
Describe your problem
I want to create a search box similar to the following. when a user enters a value, clicking the options above will jump to different links,
For example
For example, I enter qq,
Click "news" above to jump to news.sogou.com /? Kw = qq
Or click "" above to jump to hweixin.sogou.com /? Kw = qq
Or click "ask" above. Will jump to wenwen.sogou.com /? Cid = qq
.........
When you enter a value, clicking the options above will jump to different links and how to write with javascript + html. Please refer to the complete code. Thank you. I am an artist,
Window. location. href = "your url"
Js can be dynamically adjustedformHtml can be as follows:
News webpage
The navigation menu can also be dynamically generated, that is, variable definitions can be used in js scripts, and then js outputs them. Assume that the script is usedjQueryWrite.