SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2006
    Posts
    55
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    simple javascript question

    Hi,
    I see this kind a code sometime.

    <script src='https://partner.coprosper.com/lead_third/1136/order.php?offer=736'></script>\n<noscript><IMG SRC='https://partner.coprosper.com/track_lead/1136/order.php?offer=736'></noscript>";

    Is this it true that the reason we have it like this if javascript is disabled code between <noscript>runs?


    My question if javascript is on , in that case both <script> and <noscript> will execute or only <script>?

    thanks

  2. #2
    &#083;itePoint Aficionado JVLB's Avatar
    Join Date
    Jan 2002
    Location
    N 44 56.537' W 123 3.683'
    Posts
    1,127
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If JavaScript is enabled, the code inside the script tags is loaded and, when appropriate, run. If JavaScript is not enabled, the code within the script tags is ignored. Conversely, with JavaScript enabled, markup within the noscript tags is ignored; with it not enabled the content is rendered.

  3. #3
    SitePoint Guru
    Join Date
    May 2004
    Location
    santa rosa, ca
    Posts
    969
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Only what is within script.
    nondenominational, noncommercial, nonprofit,
    listener-supported, 24-hour, Christian ministry:
    Listen Live Online


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
  •