Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy ASP Equivalent for Javascript

    Does anyone know the ASP Equivalent to this javascript?

    <script>
    <!--
    if (window!= top)
    top.location.href=location.href
    // -->
    </script>


    Thanks,
    Larry

  • #2
    Regular Coder
    Join Date
    Jun 2002
    Location
    USA
    Posts
    113
    Thanks
    0
    Thanked 0 Times in 0 Posts
    That should work. ASP is not a language. You can have javascript in an asp page.

    <script language=javascript>
    <!--
    if (window!= top)
    top.location.href=location.href
    // -->
    </script>
    USA

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Posts
    344
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: ASP Equivalent for Javascript

    Originally posted by ldiuf
    Does anyone know the ASP Equivalent to this javascript?

    <script>
    <!--
    if (window!= top)
    top.location.href=location.href
    // -->
    </script>


    Thanks,
    Larry
    Larry,

    What exactly are you trying to do.. (ie, why is that not working?)

    ~Quack

  • #4
    New Coder
    Join Date
    Jun 2002
    Posts
    64
    Thanks
    0
    Thanked 0 Times in 0 Posts
    My Bad,
    The script is working just fine, I don't have any problems with it except for that is in JS I'm trying to get the ASP or VBS version of some of my javascripts to cut down on them because I'm using a bunch of them.

    Thanks,
    Larry


  •  

    Posting Permissions

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