View Full Version : Submitting
landon11
08-30-2002, 02:59 PM
If you are submitting a form to a new page, how can you make
the page you are submitting to have no location bar?
thickandthin
08-30-2002, 03:27 PM
I would imagine if you make the place you were sending to would be a pop-up window location=no
landon11
08-30-2002, 03:42 PM
I was going to use <form name="Form1" action="test.htm" target="_blank"> So how would I customize the window?
thickandthin
08-30-2002, 04:37 PM
well if you dont want the address bar you should open it in a popup window so you shoul put this in the head part
<HEAD>
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=1,menubar=0,resizable=1,width=600,height=800,left = 212,top = -16');");
}
</script>
</head>
and then in the
<body>
<form name="Form1" action="test.htm" target="javascript:popUp('yourpage.html')">
If any problems just post back!
adios
08-30-2002, 11:59 PM
Using target="_blank" opens a default style window; can't customize it. Do this:
<form action="javascript:'Hello!'" target="Fwin"
onsubmit="window.open('about:blank','Fwin','location=0')">
<input type="submit">
</form>
You can juggle the features ("location=0" above) as desired.
http://www.webreference.com/js/tutorial1/features.html
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.