•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 391,993 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 4,257 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 618 | Replies: 5
![]() |
•
•
Join Date: Jun 2008
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
Can anyone help me bypass the following codes?
JavaScript Syntax (Toggle Plain Text)
<script type="text/javascript"> if (top.location != location) top.location.href = document.location.href; </script>
Last edited by peter_budo : Jun 18th, 2008 at 8:36 am. Reason: Keep It Organized - please use [code]tags
•
•
Join Date: Jun 2008
Location: Phoenix, AZ
Posts: 535
Reputation:
Rep Power: 2
Solved Threads: 50
if what you mean by bypass is ignore, this is how you would do it.
<script language="javascript" type="text/javascript"> /* if (top.location != location) top.location.href = document.location.href; */ </script>
•
•
Join Date: Jan 2006
Posts: 13
Reputation:
Rep Power: 3
Solved Threads: 1
...why can't you change the code? I was going to say you could just put it inside a function then call that function whenever you actually do need to execute it. Like this:
javascript Syntax (Toggle Plain Text)
<script language="javascript" type="text/javascript"> function changeLocation() { if (top.location != location) top.location.href = document.location.href; } </script>
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb JavaScript / DHTML / AJAX Marketplace
Similar Threads
- How do you bypass school/corporate internate filters (Network Security)
- Custom page to login to Yahoo, Gmail, MSN etc (JavaScript / DHTML / AJAX)
- Simple JavavScript needs email validation (JavaScript / DHTML / AJAX)
- New menu setup and layout question. (Site Layout and Usability)
- javascript to jsp (JSP)
- Need help with Javascript (JavaScript / DHTML / AJAX)
- How To Print Directly to Printer (PHP)
Other Threads in the JavaScript / DHTML / AJAX Forum
- Previous Thread: Reload parent page
- Next Thread: Read or write



Linear Mode