SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict svcghost's Avatar
    Join Date
    Oct 2010
    Posts
    288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    finding all javascript onclick used like <a> tag

    Hey guys,

    godaddy.com uses onclick for many different elements instead of the <a> tag with href. They use the onclick attribute in <a> tags, <li> tags, and some other tags, to send javascript a link to open on the page. How can I check for this with PHP, if any site uses javascript to navigate, instead of the a href?

  2. #2
    SitePoint Zealot Gar onn's Avatar
    Join Date
    Feb 2011
    Location
    Belgium
    Posts
    130
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    regExp for onclick within an <a> tag.
    Or try DOMDocument


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
  •