I'm new to Javascript and to html and am trying to make the following
code snippet work but it doesn't. It refuses to call the getPage()
function and I always get a 404 error. I know the code is getting as
far as the iframe section as other parts of the html code work
correctly. But
it is not executing any code within the getPage() function as some
"hello world" writes within getPage() wouldn't print.
-----------------------------------------------------------------------------------
..
..
..
<script language="javas cript" type="text/javascript">
function getPage() {
<!--
.... some code here
return pageURL;
//-->
}
</script>
</head>
<body>
<iframe src="getPage()" name="whatever" width=100% height=600
frameborder="0" scrolling="yes" > </iframe>
..
..
..
-------------------------------------------------------------------------------
Can anyone help what the syntax error is here, or what I am trying
to do is not possible? Thanks and please no flames.