Results 1 to 3 of 3

Thread: goTo url

  1. #1
    Join Date
    Oct 2007
    Location
    slobozia
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default goTo url

    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>

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    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.

  3. #3
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    Doing nothing with javascript disabled might be the point. Why do you want to do this? In any case, the method is:

    Code:
    window.open('url of page')
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •