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; Link to comment https://forums.phpfreaks.com/topic/221011-need-som-help-redirecting-with-js/ 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(); Link to comment https://forums.phpfreaks.com/topic/221011-need-som-help-redirecting-with-js/#findComment-1144372 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.