javascript question - onclick
- by harry_T
I am trying to get this code to work, but it keeps failing.
try this link.. http://tinyurl.com/ye5khug
enter Edmonton, click on icon, then on "web site".
<script>
function newPop(url, myWin, width, height, left, top, scrollbars) {
parms = 'toolbar=yes, scrollbars=no, location=no, menubar=no, resizable=no, width= ' + width + ' , height=' + height + ' , left= ' + left + ' , top= ' + top + ' , titlebar=no , scrollbars = ' + scrollbars ;
var newwin = window.open(url,myWin, parms);
newwin.resizeTo(width,height);
newwin.moveTo(0,0);
newwin.moveTo(left,top);
newwin.focus();
return false;
}
</script>
<a onclick=" return newPop('http://google.com','window', '800','800','100','0','yes')" href="#">Web Site</a>