SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Oct 2004
    Location
    NYC
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Help with calling javascript://nop/

    Hi,

    I ran into a script and trying to understand how it was created. Can someone help me with this:

    <a href =:javascript://nop/" onclick = showTab('tag1')">page 1</a>

    I understand everything but this NOP. Any help highly be appreciated.

    Thanks

  2. #2
    SitePoint Enthusiast
    Join Date
    Jan 2005
    Location
    Nelson, NZ
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Phew! Looks like a path to a folder called "nop"
    nop used to mean No (Null) operator (operand) or no operation, a sort of dummy instruction that does absolutely nothing.

    You may be better off with:- href=javascript:void(0) "onclick= etc

    Could mean something different if the creator was not English speaking perhaps?
    Scryptik Javascript editor - with inbuilt syntax error checker

  3. #3
    SitePoint Addict
    Join Date
    Oct 2004
    Location
    NYC
    Posts
    306
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Thank you

    Thank you so much for making it clear. I had been pulling my hair out on this one. Now it all makes sense.

    Thanks.


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
  •