PoohJoon
30 May 2008, 09:54 PM
Hello,
i'm a novice and have been using the following for pop ups because it was the first one i found that i could understand that prevented pages from jumping back to top when a new window opened. It works great for most of the pop ups I need, except ones that contain a large amount of content (eg: an article, someone else's website) where scrolling is required.
Could someone please pretty please help me either figure out how to adjust this code to allow scrolling, or a better code to use.
javascript
function popitupArticles(url) {
newwindow=window.open(url,'name','width=800');
if (window.focus) {newwindow.focus()}
return false
}
HTML
<a href="newsArticle.html" onclick="return popitupArticles('newsArticle.html')">News Article</a>
Thank you very much for your time!
PJ
i'm a novice and have been using the following for pop ups because it was the first one i found that i could understand that prevented pages from jumping back to top when a new window opened. It works great for most of the pop ups I need, except ones that contain a large amount of content (eg: an article, someone else's website) where scrolling is required.
Could someone please pretty please help me either figure out how to adjust this code to allow scrolling, or a better code to use.
javascript
function popitupArticles(url) {
newwindow=window.open(url,'name','width=800');
if (window.focus) {newwindow.focus()}
return false
}
HTML
<a href="newsArticle.html" onclick="return popitupArticles('newsArticle.html')">News Article</a>
Thank you very much for your time!
PJ