javascript question - onclick
Posted
by harry_T
on Stack Overflow
See other posts from Stack Overflow
or by harry_T
Published on 2010-04-12T02:53:47Z
Indexed on
2010/04/12
3:03 UTC
Read the original article
Hit count: 364
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>
© Stack Overflow or respective owner