Hi All
I seem to have run into some problems with the Javascript.
Please can someone assist in pointing out where I have gone wrong here. ( I am only going to pull out the javascript part of the assignment)
The code.txt file opens in the same window. Although the positioning is fine on IE.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"
http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<!-- The below function calls the function open_window() which opens a window to Code.txt with attributes of width and height-->
<script>
function open_window()
{
window.open("//Code.txt","width=300,height=500"
}
</script>
</head>
<body>
<!-- Centers the div-->
<center>
<!-- This puts the footer text at the bottom of the page and calls the function open_window-->
<div style="position: absolute; bottom: 0px;"><a href="/Code.txt" <input type="text" value="Code.txt" onclick="open_window()">Code.txt</div>
</center>
</body>
</html>
Richard