Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
Close window in html, how to remove border around it?
Old 02-01-2009, 06:11 PM Close window in html, how to remove border around it?
Skilled Talker

Posts: 66
Trades: 0
Hello,

I have a slight issue that I can't quite figure out regarding a recenthtml popup page I've made - and the javascript button icon I've made that says to "close this window."

I have the button setup properly, but I can't understand how to remove the blue border that shows up defaulted around the button.

Here is the script that I have set up:

<a href="javascript:window.close()" title="click here to close the window" id="close"><img src="close_button.jpg"</a>

I was wondering if ti would be possible to simply style around the button and position it wherever I would like on the page?

Any help would be greatly appreciated.

Thanks,
Mike
Mikeface is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 02-01-2009, 06:28 PM Re: Close window in html, how to remove border around it?
Insensus's Avatar
Ultra Talker

Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
Trades: 0
First you didn't close your img tag, but that doesn't really affect the border.
<a href="javascript:window.close()" title="click here to close the window" id="close"><img src="close_button.jpg" /></a>

The blue border is probably there because it's an image inside a link, which usually get a blue border.
I think you can fix this by adding style="border: none;" to the image.
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Insensus is offline
Reply With Quote
View Public Profile
 
Old 02-02-2009, 11:31 AM Re: Close window in html, how to remove border around it?
Skilled Talker

Posts: 66
Trades: 0
Thanks Mark, that did the trick and now don't have a border around the image.

This forum is great. Thanks again,
Mike

Last edited by Mikeface; 02-02-2009 at 01:01 PM..
Mikeface is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Close window in html, how to remove border around it?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.29651 seconds with 12 queries