I am updating the code of an old site and need advice about popups. These are small windows which will be viewed on all devices. I head Apple recommends 480 width x 320 height for the iphone. This would also be a good size for PC use as well. The head code I have now is this:
function Start(page,width) {
OpenWin = this.open(page,"CtrlWindow","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=0,width="+width+",height=320");
}
The popup code is this:
<a href="#" onClick="Start('popups/MyPopup.asp', '480')">My Popup</a>
Is there a better code I should use?
Also, there is one problem. When the popup link is clicked, although the popup opens, the browser moves to the top of the page. Is there a way I can have the browser stay where it is?