Links

Lists

Latest Updates

Ruby On Rails List
Python list
Advanced Java
The JavaScript List
Apache Users
Full Disclosure
Linux Security

Search the archives!


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Javascript] Changing window properties on load


  • From: peter at brunone.com (Peter Brunone)
  • Subject: [Javascript] Changing window properties on load
  • Date: Mon Sep 20 21:02:50 2004

Hi Eduardo,

	Why not just open the window and then use the new window's name
as the target for your form post?

<script language="Javascript">
function sendForm() {
	var newWin = window.open("about:blank", "newWin",
"border=no,menubar=no,status=no");
	document.myForm.submit();
	}
</script>

<form name="myForm" target="newWin" action="http://easylistbox.com/";
method="post">
<input name="myText">
<br /><br />
<input type="button" onClick="sendForm()" value="Send" />
</form>


Cheers,

Peter Brunone
___________________
www.EasyListBox.com

-----Original Message-----
From: javascript-bounces@xxxxxxxxxx On Behalf Of Innerlab

I am posting a form to a document that opens a new browser window. I
dont want this new browser window to have address bar, toolbar, scrolbar
and so on.

If I'd use window.open() that's be easy, but I'd have to send all the
form data in the querystring, and I want to avoid that.

How can I eliminate all those things in a  <body onload =  etc
instruction ?

Thanks in advance.

______________________________________
Eduardo Gomez,  www.innerlab.com