100 Web Space
http://forum.100webspace.com/

How to make a button/link open a new window
http://forum.100webspace.com/viewtopic.php?f=4&t=3258
Page 1 of 1

Author:  HB [ Sun Dec 11, 2005 9:40 pm ]
Post subject:  How to make a button/link open a new window

Hello, I've installed this script that will allow me to upload images from my forum. Currently right now when you click the "upload image" button, it opens the upload page in the same window. Does anyone know how I can change this so that when you click the "upload image" button, it will open up in another window?

Here's the code

Thank you

Code:
<table class="forumline" border="0" cellpadding="3" cellspacing="1" width="100%">
  <tbody>
    <tr>
      <th class="thHead" colspan="2" height="25"><b>Image Upload</b></th>
    </tr>
    <tr>
      <td class="row1" width="22%"><span class="gen"><b>Upload an Image</b></span></td>
      <td class="row2" width="78%"><form enctype="multipart/form-data" method="post" name="form1" action="http://www.showpicsonline.com/photos/upload.php">
          <input name="attached" size="50" type="file">
          <br>
          <span class="style2">File extensions allowed: <b> gif</b>, <b>jpg</b>, <b>png </b><br>
File size limit: <b> 1024 KB</b> <br>
Image Hosting provided by</span> <a href="http://www.showpicsonline.com">Showpicsonline.com</a><br>         
          <input name="submit" value="Upload Image" type="submit">
      </form></td>
    </tr>
  </tbody>
</table>
<table width="100%" cellspacing="2" border="0" align="center">


  <tr>
   <td nowrap="nowrap" align="left">{NAVIGATION_BOX}</td>
  </tr>
</table>

Author:  Revaroo [ Mon Dec 12, 2005 4:36 pm ]
Post subject:  Re: How to make a button/link open a new window

Code:
<form enctype="multipart/form-data" method="post" name="form1" action="http://www.showpicsonline.com/photos/upload.php" target="_blank">


I think that would work.

Author:  HB [ Mon Dec 12, 2005 7:44 pm ]
Post subject: 

Thank you so much, it works :D :D

Author:  =cipher= [ Tue Dec 13, 2005 5:13 pm ]
Post subject: 

Greetings,

It is not hard to make hyperlinks open in windows. All you must do is just use the target attribute.

target="_blank" :: will open link in new window

target="_self" :: will open link in current window

:D

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/