Fenhopi Posted December 8, 2010 Share Posted December 8, 2010 Hi, I'm trying to redirect my users to their profile, but can't figure out how to put the function into the link. sethighlightedValue(); is a function that returns the users username. Is there anyway else to do this? Here's what I got: case RETURN: window.location = "profile.php?user="setHighlightedValue(); this.setHighlightedValue(); bubble = false; break; Quote Link to comment Share on other sites More sharing options...
trq Posted December 8, 2010 Share Posted December 8, 2010 + is Javascript's concatenation operator. window.location = "profile.php?user="+setHighlightedValue(); Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.