100 Web Space

How to make a button/link open a new window
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

<table class="forumline" border="0" cellpadding="3" cellspacing="1" width="100%">
      <th class="thHead" colspan="2" height="25"><b>Image Upload</b></th>
      <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">
          <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">
<table width="100%" cellspacing="2" border="0" align="center">

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

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

<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: 


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


Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group