dramiditis
Feb 17th 2009, 9:13 am
Hi,
I would like to set auto clickable link and to open new window. My code so far is:
<script type="text/javascript">
function init(){
var linkPage = document.getElementById('dynLink').href;
parent.location.href = linkPage;
}
onload=init;
</script>
and my link:
<a href="form.php?url=www.example.coml" id="dynLink" >new</a>";
So, everything works just fine, but I want that link to open in new window. I have tried target="newWindow" and target="_blank", but doesn't work, still opens in same window.
Any sugestions?
I would like to set auto clickable link and to open new window. My code so far is:
<script type="text/javascript">
function init(){
var linkPage = document.getElementById('dynLink').href;
parent.location.href = linkPage;
}
onload=init;
</script>
and my link:
<a href="form.php?url=www.example.coml" id="dynLink" >new</a>";
So, everything works just fine, but I want that link to open in new window. I have tried target="newWindow" and target="_blank", but doesn't work, still opens in same window.
Any sugestions?