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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Scroll through HTML code..... 1

Status
Not open for further replies.

itchyII

MIS
Apr 10, 2001
167
Hello all,
I have a page that contains a table which is published from Excel. There are hyperlinks in the spreadsheet to other files, and when the spreadsheet is published, all these hyperlinks get translated to <A> tags, which is good. However, I would like all of these <A> tags to contain =_blank' so that the linked files will be opened in a new window. Is there a way that I can write a function that would automatically scroll through the code and whenever it finds an <A> tag that the 'target=_blank' gets added to it? And if so, when would I run this function? If I ran it on the onload of the body, would it properly take effect?

Itchy
 
It's very easy and you can do it even without a script just put this code under the
Code:
<body>
-tag:
Code:
<base target=&quot;_blank&quot;>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top