Log in

View Full Version : another basic varible question



benslayton
01-15-2007, 08:35 AM
how would i put all this into a varible?


<script language= "JavaScript">
document.write(location.href);
</script>

please help.

mike_p
01-15-2007, 12:42 PM
$myvariable = '<script language= "JavaScript">document.write(location.href);</script>';
or did I misunderstand the question?