Menu
I have this code:
[code=php]
<script language=”JavaScript”>
<!– Begin
function NewWindow(url, name, w, h)
{
winprops = ‘height=’+h+’,width=’+w+’,top=’+wint+’,left=’+winl+’,scrollbars=’+scroll+’,nonResizable’
win = window.open(url, name, winprops)
}
// End –>
</script>
<a href=”javascript:NewWindow(‘dd.html’,’dd’,’320′,’240′);”>dd</a>
I would like to know how can I use this code (in the script) within the “a href” tage. I don’t want to have a functio but I want to have it all in one line.
Thanks a lot!