473,419 Members | 1,605 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,419 software developers and data experts.

How do I stop this from underlining the "Close this window" text?

<P><A style="COLOR: rgb(0,0,0); FONT-SIZE: 80%; FONT-FAMILY: 'Comic Sans
MS', cursive; TEXT-

ALIGN: left"
href="javascript:self.close();"><FONT size=4><STRONG>Close this
window!</STRONG></FONT></A></P>
Jul 20 '05 #1
2 2246
"Franklin P Patchey" <RE**************@talk21.com> writes:
<P><A style="COLOR: rgb(0,0,0); FONT-SIZE: 80%; FONT-FAMILY: 'Comic Sans
MS', cursive; TEXT-

ALIGN: left"
href="javascript:self.close();"><FONT size=4><STRONG>Close this
window!</STRONG></FONT></A></P>


Lose the FONT and STRONG tags. When you are already using CSS, you might
as well use it for everything.

Don't use javascript: URL's. <URL:http://jibbering.com/faq/#FAQ4_24>

Your font-size:80% and <FONT size=4> are counteracting each other. I
guess the font size ends up as size 4.

<p><a style="color:black;font-family:'PleaseNotComicSans', cursive;
text-align:left;
font-weight:bold;/* same as STRONG */
font-size:large; /* same as size=4 */ "
href="WhyYouNeedJavascriptToUseThisPage.html"
onclick="self.close();">Close this window!</a></p>

(I think the "cursive" font is Comic Sans by default in IE 6. Yikes!)

/L
--
Lasse Reichstein Nielsen - lr*@hotpop.com
DHTML Death Colors: <URL:http://www.infimum.dk/HTML/rasterTriangleDOM.html>
'Faith without judgement merely degrades the spirit divine.'
Jul 20 '05 #2
Franklin P Patchey wrote on 09 nov 2003 in comp.lang.javascript:
How do I stop this from underlining the "Close this window" text?
<P><A style="COLOR: rgb(0,0,0); FONT-SIZE: 80%; FONT-FAMILY: 'Comic
Sans MS', cursive; TEXT-ALIGN: left"
href="javascript:self.close();"><FONT size=4><STRONG>Close this
window!</STRONG></FONT></A></P>


This question is not very javascript related, so OT.

=======================

Do not use css font-size and Font declaration together:
Add as style element text-decoration:none;
Use an onclick declaration.
The cursive does not work there.

========

<a style="color:#000;font-size:80%;font-family:'Comic Sans MS';
font-style:italic;font-weight:800;text-align:left;text-decoration:none;"
href="#" onclick="self.close();">
Close this window!
</a>

========

Much better (IMHO) is to use a css declaration list
[I added a hover bgcol.]

========

<style>
a.closeit {
color:#000;font-size:80%;
background-color:transparent;
font-family:'Comic Sans MS';
font-weight:800;font-style:italic;
text-align:left;
text-decoration:none;
}

a:hover.closeit {
background-color:#fe0;
}

</style>
<a class="closeit"
href="#" onclick="self.close();">
Close this window!
</a>

=========

--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Peter Pagé | last post by:
Hi, I've got a window with a "<body onBlur="window.close()"> tag that keeps closing prematurely. It happens when the user clicks on text inside a table in the same window. Apparently IE...
7
by: Willem van Rumpt | last post by:
Hi all, coming from an unmanaged programming background, I took my time to sort out the IDisposable and finalizer patterns. Just when I thought I had it all conceptually neatly arranged, the...
22
by: stephen | last post by:
I have created an order form that users javascript to create a new html document when the customers clicks the "print page" button. Once the new document has been created it then prints the...
4
by: David A. Beck | last post by:
I was looking for the "Immediate" window like in Classic VB but could not find it.
4
by: stevong | last post by:
It works on Konquerer though. I remember it works on IE too. I've tried window.close() too. Doesn't work on Firefox also. I've also tried to create a function. It doesnt work on Firefox also....
5
by: lindanr | last post by:
In ASP.NET 2005 I have an onblur="window.close()" javascript event in the <body> tag. When I click on the window's scrollbar, the window closes. The same code works fine in ASP.NET 2003. Any...
0
by: vivekshrivastava51 | last post by:
i m make one window aplication project in c#.net using visual studio 2003 all thing is well and it is runing very fine but the problem is that when i send mail from from "my window application" ...
1
by: ssugumar7684 | last post by:
The problem is: I open 1 application i want that is correctly opened or not. I want to capture or get text value or anything value from window using VB Script can you give me code
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.