•
•
•
•
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 373,537 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 3,790 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:
Views: 1846 | 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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Site Layout and Usability Marketplace
- "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


Linear Mode