I want to access the DOM. Can something like this be done with PHP or a
combination of PHP/JAVASCRIPT? not tested!
<html><head><ti tle>DOM test</title>
<?php
$inFileName = 'test.js';
$outFileName = 'jk.js';
function doIt() {
$dd = getElementById( 'first');
$dd.innerText=$ outFileName;
}
?>
</head>
<body>
<p id="first" onclick="doIt() ">ClickMe<b r>
<p onclick="first. innerText=$inFi leName">ClickMe <br>
</body></html>
combination of PHP/JAVASCRIPT? not tested!
<html><head><ti tle>DOM test</title>
<?php
$inFileName = 'test.js';
$outFileName = 'jk.js';
function doIt() {
$dd = getElementById( 'first');
$dd.innerText=$ outFileName;
}
?>
</head>
<body>
<p id="first" onclick="doIt() ">ClickMe<b r>
<p onclick="first. innerText=$inFi leName">ClickMe <br>
</body></html>
Comment