[Javascript] Popup script and arguments

Lee Underwood leeu at cfl.rr.com
Thu Aug 10 10:03:15 CDT 2006


Try this one:

<script type="text/javascript">
<!--
function newWin(link,w,h,s,r) {
   var winFeatures = 'width=' + w + ',height=' + h + ',scrollbars=' + 
s + ',resizable=' + r;
   var bookWindow = window.open(link, "", winFeatures);
}
//-->
</script>


<a href="http://www.anyURL.com/index.html" 
onclick="newWin(this.href,500,400,'yes','yes'); return false;"></a>


Lee


On 8/10/2006 10:46 AM, Guillaume wrote:
........................................................

>My question is: How to have the width and height arguments not 
>managed in the script, but inline, such as:
>
><a href="popupex.html" onclick="return 
>popitup('popupex.html','height=200,width=150')"
>         >Link to popup</a>
>
>Do I have to change something in the script to do that ?
>
>Thank you for any help...
>
>Guillaume.
>
>_______________________________________________
>Javascript mailing list
>Javascript at LaTech.edu
>https://lists.LaTech.edu/mailman/listinfo/javascript
>
>
>
>--
>No virus found in this incoming message.
>Checked by AVG Free Edition.
>Version: 7.1.405 / Virus Database: 268.10.8/414 - Release Date: 8/9/2006
........................................................ 




More information about the Javascript mailing list