Results 1 to 3 of 3
Related
-
Redirecting to URL Forum: CGI Perl Forum
Replies: 1 -
Need Really Advanced Help! Don't Know If This Is Html, Javascript Or Something Else! Forum: Javascript Forum
Replies: 1 -
Advanced Browser ~ Do you know of it. Forum: General Discussion
Replies: 4 -
redirecting? Forum: General Discussion
Replies: 3 -
Redirecting Forum: Website Scripts Forum
Replies: 3
-
03-05-2003, 08:01 PM #1
Advanced redirecting in Javascript
Hi.
I'm trying to create a javascript which pretty much says: If visitor comes from page.html, then load the page. But if the visitor comes from any where else, then load otherpage.html.
Any ideas?
-
03-05-2003, 09:05 PM #2Code:
document.referrer
However, it will not work if the page came from a hard disk, is typed in the address bar, or came from bookmarks.
If you are using this for some kind of secure page, I highly recommend you use a server-side language instead.
JavaScript security is like a chocolate kettle. It just dont work.If one of our members helps you, please click theicon to add to their reputation!
No support via email or private message - use the forums!
Before you ask, have you Searched?
-
03-06-2003, 10:47 AM #3
Cloudjiffy- PaaS for Developers
10-05-2020, 12:30 AM in Web Hosting Forum