-1

Here is my HTML code:

<input id="text" type="text" name="text">
<input type="button" name="page1" onclick="javascript:window.open('http://example.com/' + this.name + '/' + document.getElementById('text').value)">
<input type="button" name="page2" onclick="javascript:window.open('http://example.com/' + this.name + '/' + document.getElementById('text').value)">
<input type="button" name="page3" onclick="javascript:window.open('http://example.com/' + this.name + '/' + document.getElementById('text').value)">
SudoGuy
  • 165
  • 1
  • 1
  • 9
  • Possible duplicate of [HTML / CSS How to add image icon to input type="button"?](https://stackoverflow.com/questions/2920076/html-css-how-to-add-image-icon-to-input-type-button) – ziMtyth Sep 11 '17 at 07:42
  • Do you want the buttons to have icons next to a text or that the button is a image? – Dejan.S Sep 11 '17 at 08:08

1 Answers1

0

You just need to add another field as below

<input type="button" style="height:200px;width:200px;background-image:url('https://i.stack.imgur.com/jhiAi.png')"/>
FreedomPride
  • 1,098
  • 1
  • 7
  • 30