Hi all,
I have a small classifieds site and I use the following script to open the
specific ads in a FRAME - "Enter Ad Number".
I have since done away with the frames and the script now has problems.
What I want to do is change it so that it will open in the current window -
and not a FRAME.
Is there a quick fix for this?
<script language="JavaScript">
function AdJump()
{
var vPage;
vPage = document.adjump.adnum.value;
vPage = http://www.anypage.com/photoads/ads + vPage + ".html";
document.open();
document.location.href = vPage;
document.close();
}
</script>
<CENTER>
<FORM NAME="adjump" OnSubmit="AdJump()">
<TABLE WIDTH=100% CELLPADDING=0 CELLSPACING=0>
<TR><TD WIDTH=10%> </TD>
<TD WIDTH=90% align="center">
<INPUT TYPE="Text" SIZE=3 VALUE="" NAME="adnum"><BR>
Enter Ad Number</FONT>
</TD></TR>
<TR><TD WIDTH=10%> </TD>
<TD WIDTH=90% align="center">
<INPUT TYPE="Submit" VALUE="Submit">
<INPUT TYPE="Reset" VALUE="Reset">
</TD></TR>
</TABLE>
</FORM>
</CENTER>