Highlights
All Snippets
Top 100 Snippets
Librarians
gbCodeLib

By Language
VB6
JavaScript
Perl
HTML
SQL
Java
DOS

GBIC >> Source Code >> JavaScript >> Snippet

404 referrer


//writes referrer page into a form

< html >
< head >
</ head >
< body >
< form name = 404form >
< script >
var from = document.referrer;
document.write( "<input type=text name=referrer value='" + from + "'>" );
</ script >
</ form >
</ BODY >
</ html >