Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Javascript > Using Javascript to add target attribute to links

Thread Tools

Using Javascript to add target attribute to links

Gerald Shastri
Posts: n/a

I have a page which is being generated by a CMS and I can't control
the links which are being outputted. I want to add a target =
"_parent" attribute to all the links on my page using javascript. Can
anyone tell me how to do it.

Thanks a lot.


Reply With Quote

Thread Tools

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 On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem in setting Target Node and Target Tree Property mohit ASP .Net 0 01-23-2008 05:41 AM
Adding "target" Attribute To All Links Chris Marsh ASP .Net 2 12-11-2007 04:17 PM
[XML Schema] Including a schema document with absent target namespace to a schema with specified target namespace Stanimir Stamenkov XML 3 04-25-2005 09:59 AM
HTML 4.01 Strict & the Target attribute Simon HTML 21 10-31-2004 03:41 PM
Form target attribute--not validating with strict doctype? TheKeith HTML 9 10-21-2003 11:06 PM