DarkLightA
03-22-2009, 08:36 PM
So.. I'm just wondering if.. for example if I'm not sure of the name of a site, and I create a new document which I'll redirect to every time I say the name (don't comment on this part, it's just an example :D)
BUT the point is:
Should I use JavaScript:
<html>
<head>
</head>
<body>
Welcome to <script type="text/javascript" src="../scripts/sitename.js"></script>. Hope you have a nice time here!
and then have a JS code of:
{
document.write("<b>CurrentSiteName</b>")
}
or use PHP to input it (if so, where is a tutorial on just that part?)
and will one/both work in, for example, <title></title>?
BUT the point is:
Should I use JavaScript:
<html>
<head>
</head>
<body>
Welcome to <script type="text/javascript" src="../scripts/sitename.js"></script>. Hope you have a nice time here!
and then have a JS code of:
{
document.write("<b>CurrentSiteName</b>")
}
or use PHP to input it (if so, where is a tutorial on just that part?)
and will one/both work in, for example, <title></title>?