2
You have the possibility to add a td / div / table / iframe
within a Function?
For example:
function Retorno(){
<td height="#" width="#" >
<div id="#" width="#">
<table width="#">
<tr>
<td >
<iframe style="#" src="#" width="#" height="#" >
</iframe>
</td>
</tr>
</table>
</div>
</td>
}
To sum up, I wish it were like the :
function Retorno(){
window.self.location.href ="#";
}
Only that determining size, shape, etc.
Did not understand well, doubt is how to create this DOM hierarchy within a function? To later add to the DOM of the page?
– Wakim
@Wakim, that’s right, is that in my case I want to perform this function by calling certain page! But I have no idea how to put javascript to type this (I don’t even know if it’s possible)!
– Felipe
So you want a way to change the values of the elements via javascript correct? I see two ways to do this, I will elaborate a response.
– Wakim
That’s right @Wakim, thank you ^^
– Felipe
@Felipe the most practical can be to have this code already in HTML with
display: none;
and make a clone when needed.– Sergio
@Sergio could make it more specific ?
– Felipe
@Felipe if you put all this html on the page you can search with javascript and make a copy and then insert where necessary. It can be useful to use Mootools or jQuery.
– Sergio