On Sat, 7 Feb 2004 17:11:58 -0800, P.L. Owens <no****@nospam.com> wrote:
[Fixed top-post and snipped]
"Tom Kiefer" <th*******@earthlinknot.net> wrote in message
news:MC*******************@newsread2.news.pas.eart hlink.net...
Maybe something like:
<script language="JavaScript">
Don't use the language attribute - it is deprecated. However, the type
attribute is required and is sufficient.
<script type="text/javascript">
<!--
Don't use SGML comments in SCRIPT sections. The archaic reasons for using
them are no longer valid.
document.write('<IMG SRC="' + document.location.search + '" WIDTH=400
BORDER=0>');
// -->
As above.
</script>
[snip]
Thanks but this still does not seem to be picking up the parameter.
For two reasons:
1) The document object doesn't have a location property, and
2) Even if it did, the resulting URL would have a question mark as its
first character.
Instead, try
document.write('<img src="' + window.location.search.substr(1) + '">');
Mike
--
Michael Winter
M.******@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)