View Single Post
  #11 (permalink)  
Old Jan 29th, 2008, 09:30
Rakuli's Avatar
Rakuli Rakuli is offline
SuperMember

SuperMember
Join Date: Sep 2007
Location: Australia
Age: 24
Posts: 956
Blog Entries: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Link to another page in JavaScript

Oh!.. You don't want to send the page to a different URL, you actuall want to write an <a></a> link to the page... I misunderstood.

You would just need to change

var before = '<a href="http://www.yahoo.com">Yahoo.com</a>';
var current = '<a href="http://www.google.com">Google.com</a>';
Reply With Quote