<script type="text/javascript">
// Popup window code
function newPopup(url) {
popupWindow = window.open(url,'popUpWindow','height=500, width=800, left=10, top=10, resizable=yes, scrollbars=yes, toolbar=yes, menubar=no, location=no, directories=no, status=yes')
}
</script>
<a href="JavaScript:newPopup('http://www.google.ca');">CLICK HERE</a></a> to go to google.
When the user click on CLICK HERE
on the webpage, a pop-up window will appear and it directs you to the http://www.google.ca
web page. My question is how do I make it so that the pop-up window will automatically scroll to the bottom on the page when CLICK HERE
is clicked?
I found this code segment:
window.scrollBy(0,50)
, but it scrolls the website itself to the bottom. It doesn't scroll the popup window.