Click to See Complete Forum and Search --> : html <a> </a>


clyde
05-06-2003, 03:37 PM
Anybody That can Help Me Refer to HTML Code Below.

Here is my Question, The Last Cell Gives the Ability to Click on ADD and Procede to a URL. INSTEAD WHWN ADD IS CLICKED IS THERE ANY WAY TO HAVE A JAVA SCRIPT EXECUTE THAT WOULD ALLOW A NEW WINDOW TO OPEN THAT I COULD CONTROL SIZE AND CHROME.

WOULD APPRECIATE ANY HELP POSSIBLE.

THANKS
CLYDE

<tr>
<td><FONT size="-1"><a name="/%Mfgx%/">/%Mfg%/</a></FONT></td>
<td><FONT size="-1">/%Mfgdesc%/</FONT></td>
<td><FONT size="-1">/%Mfgnum%/</FONT></td>
<td><FONT size="-1">/%Mfgprice%/</FONT></td>
<td><FONT size="-1"><INPUT size="4" type="text" maxlength="4" name="/%Mfgqty%/"></FONT></td>
<td valign="middle" align="center"><FONT size="-1"><A href="/infcgilibp/isl550.pgm?mfgno=/%Mfgnum%/&mfgdes=/%mfgdesc%/" onclick="process(/%xxx%/);" target="_blank">Add</A></td>
</tr>

havik
05-06-2003, 03:40 PM
Try this and edit to your needs

<script type="text/javascript">

function popup() {

window.open('URL', 'name', 'attributes');

}

</script>
<a href="javascript::popup()">test</a>

See this link for attributes:
http://www.webreference.com/js/column7/attributes.html
Havik

khalidali63
05-06-2003, 03:43 PM
this should do that for you.change the href to this
href="javascript:void(0);"
in the function process(...);
at the bottom of the function code ad this line of code

window.open("/infcgilibp/isl550.pgm?mfgno=/%Mfgnum%/&mfgdes=/%mfgdesc%/","newWin);

the above will open a window with no controls on it,To set the width and controls
you need to set the properties...

clyde
05-06-2003, 03:45 PM
AGAIN YOU HAVE HELPED.

MY IS OFF TO YOU,
THANK YOU
CLYDE

clyde
05-07-2003, 06:25 AM
Thanks For Your Answer, much appreciated

clyde