Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Need help to stop redirecting

redirect

  • Please log in to reply
12 replies to this topic

#13 opwuaioc

opwuaioc

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 145 posts
  • Location:NYC
  • Programming Language:C, Java, C++, PHP, JavaScript
  • Learning:C#, Python, Assembly

Posted 07 January 2011 - 01:15 PM

Just add <!-- before <script> and --> after </script>.

Example:

<html>
<head>

<!--<script type="text/javascript"> 
if(window.top.location.href!="url")

window.top.location.href ="http://google.com/";

</script>-->

<body>TEST</body>
</html>

  • 0
οἵη περ φύλλων γενεὴ τοίη δὲ καὶ ἀνδρῶν. - Iliad 6.146





Also tagged with one or more of these keywords: redirect

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download