Is het mogelijk om, met javascript, de url van een iframe die zich in een welbepaalde pagina bevindt in een variabele te plaatsen (dus vanaf de "parent" pagina)?
Of is dit cross-scripting?
Dit heb ik, maar kom er niet uit:
<html>
<head>
<title>Test</title>
<script language="JavaScript">
window.onload=doeHet()
function doeHet()
{
frame["hetiframe"].location.href=siteURL
document.write(siteURL)
}
</script>
</head>
<body>
<iframe id="hetiframe" name="hetiframe" src="http://www.google.com" scrolling="yes" width="1024" height="768" frameborder="0"></iframe>
</body>
</html>
PS: hoe zet je de code in zo'n "code-layout"?
Of is dit cross-scripting?
Dit heb ik, maar kom er niet uit:
<html>
<head>
<title>Test</title>
<script language="JavaScript">
window.onload=doeHet()
function doeHet()
{
frame["hetiframe"].location.href=siteURL
document.write(siteURL)
}
</script>
</head>
<body>
<iframe id="hetiframe" name="hetiframe" src="http://www.google.com" scrolling="yes" width="1024" height="768" frameborder="0"></iframe>
</body>
</html>
PS: hoe zet je de code in zo'n "code-layout"?