Welcome visitor
* Login
* Register
It is currently September 15th, 2019, 9:58 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
  Send a frame via mailto
PostPosted: February 22nd, 2010, 9:48 pm 

Posts: 22
Hi, good night people.

I'm looking for a way to send the current site inside a frame via mailto. I mean, the link to the mailto will always be there, as well as the iframe, but the content inside the iframe will change from time to time, so how could I send the linkt that is courrently being shown on the iframe?

And thanks.


Top
 Profile  
 
  Re: Send a frame via mailto
PostPosted: February 23rd, 2010, 4:02 pm 

Posts: 96
I got this from a couple of forums, but it will only work for sites inside your domain, not for external websites framed in the iframe because of security reasons.

<iframe name="ifr" id="tgiframe" style="width: 400px; height: 300px" ></iframe>
<a href="#" onclick="sendmail();">send this page to me!</a>
<script type="text/javascript">
function sendmail(){
lnk = document.getElementById('tgiframe').contentWindow.location.href;
window.open('mailto:add@some.com?Subject=link!!&body='+lnk);
}
</script>


http://www.scriptingok.com/forum/t5_1247-Send-image-to-given-email-address


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