Welcome visitor
* Login
* Register
It is currently May 22nd, 2019, 6:48 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
  Open one link inside a table
PostPosted: December 1st, 2009, 7:38 pm 

Posts: 17
Hi, how can i have a link inside one table, in one cell and when it is clicked the content of the cell changes, the link should disappear but the link should be opened there. Do you know how to do it?


Top
 Profile  
 
  Re: Open one link inside a table
PostPosted: December 1st, 2009, 8:29 pm 

Posts: 117
<head>
<title>iFrames & tables</title>
<style type="text/css">
table{width: 700px; height: 300px; background-color: #425364}
iframe{width: 300px; height: 250px; display: none}
</style>
</head>
<body>
<table>
  <tr>
    <td><a href="http://www.scriptingok.com" target="cella"
    onclick="this.style.display='none';
    document.getElementById('ifa').style.display='inline';">scriptingok</a>
      <iframe name="cella" id="ifa"></iframe></td>
    <td><a href="http://www.google.com" target="cellb"
    onclick="this.style.display='none';
    document.getElementById('ifb').style.display='inline';">google</a>
      <iframe name="cellb" id="ifb"></iframe></td>
  </tr>
</table>
</body>


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