Forum Moderators: open

Message Too Old, No Replies

How do I insert a link to a different website?

         

kslnor

12:29 pm on Mar 16, 2006 (gmt 0)

10+ Year Member



Within this line of code, how do I link to a different website...not another page within this site? Instead of clicking and being sent to the /Cimmunities page, I want to be sent to another site. I've tried putting the "A Href" many different places within this string, but to no avail. Thank you.

<td height="18" width="148" class="linksOUT1" onMouseOver="this.className='linksOVER1'" onMouseOut="this.className='linksOUT1'" onClick="MM_goToURL('parent','/Communities.shtml');return document.MM_returnValue">&nbsp;Community Overview</td>

kaled

2:49 pm on Mar 16, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Either
1) Remove the onclick attribute and add href="http://www.domain.com/page.html"
or
2) Change the onclick attribute to
"MM_goToURL('parent','http://www.domain.com/page.html'); return true;" and possibly add href="#"

The second method is not guaranteed to work, it depends on a javascript function that may filter the urls and prevent outward linking.

Kaled.

kslnor

8:23 pm on Mar 16, 2006 (gmt 0)

10+ Year Member



Thanks, Kaled. The second option works great!