SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Serial Publisher silver trophy aspen's Avatar
    Join Date
    Aug 1999
    Location
    East Lansing, MI USA
    Posts
    12,937
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    self.location.href() not working in Moz

    Code:
    <form><input type = "button" value = "Read Replies" name = "Submit" class = "tt" onclick = "self.location.href('url')"></form>
    Anyone have any idea why that doesn't work in moz?
    Chris Beasley - I publish content and ecommerce sites.
    Featured Article: Free Comprehensive SEO Guide
    My Guide to Building a Successful Website
    My Blog|My Webmaster Forums

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    What are you trying to do? If you're trying to redirect, your code should look more like this:
    Code:
    onclick="self.location.href = url;"


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
  •