Try this as a possibility:
<script type="javascript">
function popupmain(url, width, height, left, top, menuBar, scrollbars) {
var popupmain = window.open(url,"popupmain",'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',menuBar=' + menuBar + ',scrollbars=' + scrollbars + ',resizable=0' + ',toolBar=0');
popupmain.focus(); }
</script>
- <script type="javascript">
- function popupmain(url, width, height, left, top, menuBar, scrollbars) {
- var popupmain = window.open(url,"popupmain",'width=' + width + ',height=' + height + ',left=' + left + ',top=' + top + ',menuBar=' + menuBar + ',scrollbars=' + scrollbars + ',resizable=0' + ',toolBar=0');
- popupmain.focus(); }
- </script>
Then for your link:
<a onClick="this.blur()" href="javascript:popupmain('yourpage.html',%20450,%20450,%2050,%2050,%200,%2011)">
My Main Page</a>
- <a onClick="this.blur()" href="javascript:popupmain('yourpage.html',%20450,%20450,%2050,%2050,%200,%2011)">
- My Main Page</a>
This is the part you will have to adjust:
%20450,%20450,%2050,%2050,%200,%2011
They represent the values for width, height, left, top, menuBar, and scrollbars respectively. So in this case width is 450 px and height is 450 px. This will be the width and height of the window. If you wanted it to be 600x600 you would change the first 2 %20450's to %20600.
The next two %2050's are the position the window will appear when it opens - in this case 50 pixels from the top and left of the screen. You may need to adjust this to center it where you want it. The %200 - is the menu bar. The zero at the end shuts off the menu - if you wanted it on you would use %201. The last number is the scrollbars. Both the ones at the end indicate both horizontal and vertical scrolling are on. To turn both off use %2000
The resizable part and toolbar part are handled in the script. Both are set to 0 which turns them off. If you wanted them on set them to 1. (I wasn't 100% sure about the toolbar, but I think that's it).
I did that pretty quick. I don't think there are any errors in it. My apologies if there are.