Making a Form Submit Button Open a New Window

Discussion in 'HTML & Website Design' started by Sleepy_Sentry, Oct 28, 2006.

  1. #1
    I want to make this script open the URL entered into a new window without browser navigation.
    http://dealfiesta.com/script.php
    
    <form id="form1" name="form1" method="post" >
      Enter URL (http://www.google.com)
      <input type="text" name="url" />
      <input type="submit" name="Submit" value="Submit" />
    </form>
    
    Code (markup):
    How can I do this?
     
    Sleepy_Sentry, Oct 28, 2006 IP
  2. phree_radical

    phree_radical Peon

    Messages:
    563
    Likes Received:
    18
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can add the target attribute to the <form> tag, such as
    <form id="form1" name="form1" method="post" target="_blank" >
    Code (markup):
    Sorry but I don't know how to customize a new window's navigation bar without JavaScript. You can get started combining JavaScript with form submission here:
    http://javascript.internet.com/forms/form-target-formatting.html
     
    phree_radical, Oct 28, 2006 IP
    Sleepy_Sentry likes this.