PDA

View Full Version : goTo url



Dark Knight
10-31-2007, 02:07 PM
Hy, can you show me a script for navigating to a link using javascript? I've tried on the net but i've found nothing. The script should be like this one:
<a href="javascript:;" onclick="goTo('url of page');return false">The Link</a>

boogyman
10-31-2007, 02:13 PM
a link will do that in the first place. thats what they were made for

second in your attempt you make it so if the user has javascript disabled the link will not do anything.

jscheuer1
10-31-2007, 03:42 PM
Doing nothing with javascript disabled might be the point. Why do you want to do this? In any case, the method is:


window.open('url of page')