Jump to content

Form Action

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
2 replies to this topic

#1
ezcat

ezcat

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
With the following code, I create a button and use the action= to go to a web site:

<th width="150"><div align="center"><form name="form1" method="get" action="http://www.somewebsite.com"><input type="submit" name="submit" value="Album"></form></div></th>

This works ok, but what I would like to do is start a new browser window and go to Some Website.

Any suggestions?

Thanks,
Jon

#2
Xility

Xility

    Programmer

  • Members
  • PipPipPipPip
  • 130 posts
Hi,

Have you tried to add target="_blank" to your form attributes?

#3
ezcat

ezcat

    Learning Programmer

  • Members
  • PipPipPip
  • 39 posts
Thanks, target="_blank" did the trick.

Jon