View Full Version : Text Change
quietstorm
05-18-2002, 01:28 AM
I'm in the process of designing a site right now, and I want the body text to change when I click on a link. I just need to know what function to use in the onClick on the link.
Thanks.
scoutt
05-19-2002, 12:52 PM
http://www.htmlforums.com/showthread.php?s=&threadid=11355
http://www.htmlforums.com/showthread.php?s=&threadid=11639
good luck
quietstorm
05-19-2002, 07:14 PM
Let me rephrase. I want to clear the current text, and replace it with a completely different text.
Jon Hanlon
05-19-2002, 07:32 PM
onclick="self.location.replace('anotherFile.html')"
or:
onclick="self.location.href='anotherFile.html'"
The first method replaces the current page in the history list. That is, there's no longer any mention of the original page in history.
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.