Welcome visitor
* Login
* Register
It is currently September 20th, 2019, 1:46 pm
All times are UTC [ DST ]
* Search
View unanswered posts - View active topics

FORUMS » Client Side » HTML



Post new topic Reply to topic  [ 2 posts ] 
Author Message
  links to an iframe not working
PostPosted: April 29th, 2009, 7:39 pm 
User avatar

Posts: 61
can someone tell me why the javascript is not working? i got this error

Quote:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; InfoPath.2; .NET CLR 2.0.50727; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)
Timestamp: Wed, 29 Apr 2009 18:28:44 UTC


Message: Object expected
Line: 1
Char: 1
Code: 0
URI: about:blank


and this is a part of my code

<a href="javascript:linked();" target="framed">See all</a>
<iframe name="framed"> </iframe>

<style type="text/css">
    iframe{width: 700px; height: 350px;}
</style>
<script type="text/javascript">
    function linked(){window.open('http://www.yahoo.com', 'framed')}   
</script>


thanks.


Top
 Profile  
 
  Re: links to an iframe not working
PostPosted: April 29th, 2009, 10:02 pm 
User avatar

Posts: 136
remove the target on the tag <a>


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

FORUMS » Client Side » HTML


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron