Jump to content

How to make HTML search ?


iGraphics

Recommended Posts

Hello Everyone,

How to make HTML Search Like Google But :

For Example my link is example.com/videos

When I want to make search for this word funny by HTML inbut and when I click submit button the result should be like this:

example.com/videos/funny

 

How I do that, please ...

Thanks

Edited by iGraphics
Link to comment
Share on other sites

Changing the URL of the page is the easy part, but you'll need either Javascript or PHP for it.

In Javascript, you can change the URL by setting the value of location.href. You can get the value of the text field by reading its value property.

If you actually want to filter videos you'll need a more complex system.

Link to comment
Share on other sites

21 hours ago, Ingolme said:

Changing the URL of the page is the easy part, but you'll need either Javascript or PHP for it.

In Javascript, you can change the URL by setting the value of location.href. You can get the value of the text field by reading its value property.

If you actually want to filter videos you'll need a more complex system.

Can you do this code for me please ? 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...