Hey Henry, miss our chats.
Yes, 1, and just mentioning the attribute are the same thing. 0, no, and leaving the attribute out are all synonymous.
Additionally don't hard code the window ID. Make it unique. Reason?
- Someone opens a pop up.
- clicks back in main window.
- click another link and opens in the window named "pop" which is now behind the main window
- user closes browser thinking "this site is broken"
Also returning false from this function will allow you to dispense with the extra inline "return false" - see accompanying html.
function showPopup(url) {
var day = new Date();
var id = day.getTime();
newwindow=window.open(url,id,'height=600,width=800,top=50,left=50,resizable,scrollbars');
if (window.focus) {newwindow.focus()}
return false;
}
</script>
$url="<a href=\"$news_url\" name=\"pop\" target=\"_blank\" onClick=\"
return showPopup(this.href)\">$linktitle</a>";
Note that it will only show scrollbars if the content is large enough to push the window size larger than 600 X 800.