Results 1 to 5 of 5

Thread: Submit button opening in new window.

  1. #1
    Join Date
    May 2006
    Location
    Down Under (Australia)
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Submit button opening in new window.

    Hello,

    like could someone please help me?

    I am having trouble making my submit button open in a new window cause i am using a framed layout and i need the submit button for my voting poll to open in a new window (cause it currently opens in the same frame).
    So like i said before could someone help me.. PLEASE?

    this is the code:

    <TR>
    <TD align=middle bgColor=#A9BACA>
    <input type="image" src="http://i65.photobucket.com/albums/h220/pilgrimspursuit/submit.png" name="search" value="search" border=0 vspace="4"></TD></TR>
    <TR>

    Well thanks.

  2. #2
    Join Date
    Aug 2005
    Posts
    971
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    If you are using a form try placing a target attribute in your form element like this:

    <form method="whatever.php"action="GET" target=_blank>

    else try this:

    <input type="image" target=_blank other="attributes...">

  3. #3
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    The former is the correct method.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  4. #4
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    Generally, I think that quotes are supposed to go around the target:
    target="_blank"

    yes?
    Daniel - Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum

  5. #5
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Not necessarily so, actually, I recently discovered. It's neater to have them, of course, but not required.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •