PDA

View Full Version : Opening a small window


harv
04-04-2003, 03:13/03:13AM
I want to open a small positioned window
from a web page. There seems to be a number
of variations in the way that people code
such actions, for example

----------------------------------------------------
<script>
function doPopUp(){
doPopUpWindow = window.open("http://www...","red","toolbar=yes,
menubar=yes,status=yes,scrollbars=yes,resizable=yes,
left=100,top=100,width=300,height=400");
}
</script>


Then

<a href="javascript:doPopUp()">Click Here</a> </p>

----------------------------------------------------


Sometimes these are done as inline functions.

Also, on a minor point,
<script language="javascript"> instead of <script>


Is there a preferred method ?

Thanks
Harvey




[Moved to JavaScript forum. - Jill]