I would like to have a 600 X 400 window open with search results from
CPanel's Entropy Search form.
I have the following in the <HEAD> tag:
<script language="javas cript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypag e,myname,w,h,sc roll,pos){
if(pos=="random "){LeftPosition =(screen.width) ?Math.floor(Mat h.random()*(scr een.width-w)):100;TopPosi tion=(screen.he ight)?Math.floo r(Math.random() *((screen.heigh t-h)-75)):100;}
if(pos=="center "){LeftPosition =(screen.width) ?(screen.width-w)/2:100;TopPositi on=(screen.heig ht)?(screen.hei ght-h)/2:100;}
else if((pos!="cente r" && pos!="random") ||
pos==null){Left Position=0;TopP osition=20}
settings='width ='+w+',height=' +h+',top='+TopP osition+',left= '+LeftPosition+ ',scrollbars='+ scroll+',locati on=no,directori es=no,status=no ,menubar=no,too lbar=no,resizab le=no';
win=window.open (mypage,myname, settings);}
// -->
</script>
I have the following <FORM>:
<form action="/cgi-sys/entropysearch.c gi"
onSubmit="NewWi ndow(this,'join ','600','400',' no','center');r eturn
false" onfocus="this.b lur()">
<input name="query" type="text" class="form" value="" size="30">
<input type="submit" value="Search" class="form">
<input type="hidden" name="user" value="abc">
<input type="hidden" name="basehref" value="http://www.abc.com">
<input type="hidden" name="template" value="default" ></td>
</form>
What am I doing wrong?
CPanel's Entropy Search form.
I have the following in the <HEAD> tag:
<script language="javas cript" type="text/javascript">
<!--
var win=null;
function NewWindow(mypag e,myname,w,h,sc roll,pos){
if(pos=="random "){LeftPosition =(screen.width) ?Math.floor(Mat h.random()*(scr een.width-w)):100;TopPosi tion=(screen.he ight)?Math.floo r(Math.random() *((screen.heigh t-h)-75)):100;}
if(pos=="center "){LeftPosition =(screen.width) ?(screen.width-w)/2:100;TopPositi on=(screen.heig ht)?(screen.hei ght-h)/2:100;}
else if((pos!="cente r" && pos!="random") ||
pos==null){Left Position=0;TopP osition=20}
settings='width ='+w+',height=' +h+',top='+TopP osition+',left= '+LeftPosition+ ',scrollbars='+ scroll+',locati on=no,directori es=no,status=no ,menubar=no,too lbar=no,resizab le=no';
win=window.open (mypage,myname, settings);}
// -->
</script>
I have the following <FORM>:
<form action="/cgi-sys/entropysearch.c gi"
onSubmit="NewWi ndow(this,'join ','600','400',' no','center');r eturn
false" onfocus="this.b lur()">
<input name="query" type="text" class="form" value="" size="30">
<input type="submit" value="Search" class="form">
<input type="hidden" name="user" value="abc">
<input type="hidden" name="basehref" value="http://www.abc.com">
<input type="hidden" name="template" value="default" ></td>
</form>
What am I doing wrong?
Comment