Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

"onClick" within FONT tag (?) 1

Status
Not open for further replies.

funkymonk

Technical User
Dec 18, 2000
588
GB
Every time I place an Open Window command onto a block of text, Dreamweaver puts the onClick into the font tag. Now I do know that it should go into the <a> tag and I'm getting fed up with going to the code all the time to change this. Is there a specific way of adding these types of commands to text so it adds the code correctly?

Thanks roda B-)

Learning is like rowing against the current. As soon as you stop, you start going backwards.
 
Hello roda!

It's very easy!

There is one rule - first select the desired object and then apply to this object desired behavoiur.

I'll explain:
you want to open a new window when you click on some link, aren't you? So, first select this link (click somewhere in the link and select <a> tag at the left bottom corner of DW's window) and then apply behaviour (command) to this link.
But as I understand you click anywhere in the text and then apply behaviour. But for which element DW must apply this behaviour? For the element inside which you have a cursor - in your case FONT tag. That's why DW applies it to FONT tag.
I hope it's clear.

Good Luck!
 
Ahhh... I always wondered what those were for, now it makes sense! Thanks Eugene, a star for you...... roda B-)
rod@sameplanet.co.uk

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top