# White border when linking a popup to a JPG

**URL:** <https://forum.kirupa.com/t/white-border-when-linking-a-popup-to-a-jpg/98249>\
**Category:** Uncategorized\
**Created:** [January 5, 2004, 4:22am UTC](https://forum.kirupa.com/t/white-border-when-linking-a-popup-to-a-jpg/98249 "2004-01-05T04:22:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sintax321](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sintax321](https://forum.kirupa.com/u/sintax321)\
**Post date:** [January 5, 2004, 4:22am UTC](https://forum.kirupa.com/t/white-border-when-linking-a-popup-to-a-jpg/98249/1 "2004-01-05T04:22:54Z")

</div>

I’m linking directly to a JPG into a javascript popup from flash. Problem is when you link to a JPG you get that default white border on the top and on the left. Is there any code to get rid of that border like the code u use to get rid of the scroll bars and toolbars?

code looks like this:  
[AS]on (release) { getURL(“javascript:var mypopup = window.open  
(‘pics/home/home1.jpg’,‘mySite’,  
‘toolbar=0,  
location=0,  
directories=0,  
status=0,  
menubar=0,  
scrollbars=0,  
resizable=1,  
width=500,  
height=300,  
top=’+eval((screen.availHeight - 300) / 3)+’,  
left=’+eval((screen.availWidth - 500) / 2));  
mypopup.focus();”); }[/AS]

Edit: i added returns so it didnt’ cause horziontal scrolling in the thread. Actual code is all in one line.
