I am not sure if this is easier to do in css or javascript...
I use target=_blank to make the browser open a new window, but I have noticed that in Firefox, the new window will not only be brought to the front, but will also completely cover the "parent" window. Can I set the window size in CSS? If so, how can I do this? I have like 100 links in my "Useful Links" page and hope to solve this problem with minimum effort.
thanks.Instead of using the target attribute, replace it with thisnclick="window.open(this.href,'newwin',winProps);return false;"Then in the head of your page, have this:<script type="text/javascript">
var winProps = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=400,height=300";
</script>Instead of replacing it you should use both together so that anyone whose broswer doesn't have Javascript enabled will still see the new window (admittedly not nicely sized like the Javascript version).oh ok.
thank you.Or, you could be nice to us web surfers and not open up links in new windows. We all know how to use the 'Back' button to get back to your site if we want to, and I really dislike having extra windows popping up that I didn't ask for.hehe, let me apologize to you all first.Thanks to the wonder that is Greasemonkey, I've just configured my browser to ignore the "target" attribute and block pop-ups.I thought you were an Opera user Charles.I thought you were an Opera user Charles.I was, but I switched PCs and couldn't find my key. Firefox is free and almost as useful.
I use target=_blank to make the browser open a new window, but I have noticed that in Firefox, the new window will not only be brought to the front, but will also completely cover the "parent" window. Can I set the window size in CSS? If so, how can I do this? I have like 100 links in my "Useful Links" page and hope to solve this problem with minimum effort.
thanks.Instead of using the target attribute, replace it with thisnclick="window.open(this.href,'newwin',winProps);return false;"Then in the head of your page, have this:<script type="text/javascript">
var winProps = "menubar=yes,location=yes,resizable=yes,scrollbars=yes,status=yes,width=400,height=300";
</script>Instead of replacing it you should use both together so that anyone whose broswer doesn't have Javascript enabled will still see the new window (admittedly not nicely sized like the Javascript version).oh ok.
thank you.Or, you could be nice to us web surfers and not open up links in new windows. We all know how to use the 'Back' button to get back to your site if we want to, and I really dislike having extra windows popping up that I didn't ask for.hehe, let me apologize to you all first.Thanks to the wonder that is Greasemonkey, I've just configured my browser to ignore the "target" attribute and block pop-ups.I thought you were an Opera user Charles.I thought you were an Opera user Charles.I was, but I switched PCs and couldn't find my key. Firefox is free and almost as useful.