OLG Posted July 8, 2007 Share Posted July 8, 2007 PHP's great - im a complete nooblet at javascript apparently. Why the hell isn't this working? is scrollTo deprecated or something? or have i completely lost my mind? function PopupWindow(URL, id) { var OpenWindow = window.open(URL, id, "height=650, width=900,toolbar=no,scrollbars=yes,left=340,top=200,menubar=no"); OpenWindow.scrollTo(450, 450); } Quote Link to comment Share on other sites More sharing options...
arianhojat Posted July 9, 2007 Share Posted July 9, 2007 http://www.webdeveloper.com/forum/showthread.php?t=27037 seems like u cannot do a scrollTo if url is not on your own web server. PopupWindow("/myownwebsite/index.html", 'popup'); PopupWindow("http://www.externalwebsite.com/index.html", 'popup'); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.