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); } Link to comment https://forums.phpfreaks.com/topic/58956-why-isnt-this-function-working/ 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'); Link to comment https://forums.phpfreaks.com/topic/58956-why-isnt-this-function-working/#findComment-293349 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.