Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

add submit url to button html

<!DOCTYPE html>
<html>
<body>
<style>
.sb {
  background-color: red;
  color: white;
  cursor: pointer;
}
</style>

<p>This example uses google search as the url to submit</p>

<form action="https://www.google.com/search" target="_blank">
  <h2>Google Search in Javascript</h2>
  <input name="q"><br><br>
<button class="sb">Search</button>
</form> 

</body>
</html>
 
PREVIOUS NEXT
Tagged: #add #submit #url #button #html
ADD COMMENT
Topic
Name
2+9 =