•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Site Layout and Usability section within the Web Development category of DaniWeb, a massive community of 426,923 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 2,352 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 Site Layout and Usability advertiser: Programming Forums
Views: 1963 | Replies: 0
![]() |
| |
I have obtained the following script which only lets a page load if the visitor has been to the previous page, if they haven’t it sends the visitor to the appropriate page. However, it only works in Mozilla. Can anyone help me adapt this script to work in Internet Explorer?
Cheers,
NuGG
<SCRIPT LANGUAGE="JavaScript" >
<!-- Begin
var requiredfrom = "http://domain.com/somepage.htm"; // required prev. page
if (document.referrer.indexOf(requiredfrom) == -1) {
alert("You must logon first...");
window.location=requiredfrom;
}
// End -->
</script>Cheers,
NuGG
![]() |
•
•
•
•
•
•
•
•
DaniWeb Site Layout and Usability Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
- "Must visit from" javascript wont work in IE... (JavaScript / DHTML / AJAX)
Other Threads in the Site Layout and Usability Forum
- Previous Thread: Http 500 -internal Server Error
- Next Thread: Disallowed_Parent_Path


Hybrid Mode