Forum Moderators: mack
I am looking for a way to create a link so it will open in a new window with a set size and no buttons or other stuff except maybe the scroll bar. the link itself is to goto a "shopping cart" and another one for images on my website but I can't seem to figure it out. I have tried this java stuff with no success I am sure I am doing some thing wrong.
Any suggetions? tutorial sites or something would be appreciated.
<script language="JavaScript">
<!--
function na_open_window(name, url, left, top, width, height, toolbar, menubar, statusbar, scrollbar, resizable)
{
toolbar_str = toolbar? 'yes' : 'no';
menubar_str = menubar? 'yes' : 'no';
statusbar_str = statusbar? 'yes' : 'no';
scrollbar_str = scrollbar? 'yes' : 'no';
resizable_str = resizable? 'yes' : 'no';
window.open(url, name, 'left='+left+',top='+top+',width='+width+',height='+height+',toolbar='+toolbar_str+',menubar='+menubar_str+',status='+statusbar_str+',scrollbars='+scrollbar_str+',resizable='+resizable_str);
}
// -->
**Position this wher eyou want people to click on***
<a href="javascript:na_open_window('win', 'http://www.yoursite.com', 150, 150, 450, 350, 0, 0, 0, 0, 0)">Shipping info, Sizes etc</a>
*** The numbers at the end are for sizes and position of teh window etc****
I cant think for the life of me of teh URL I used the free tool on to do this.