Solved

Possible To Mask External Link

Posted on 2006-11-03
2
138 Views
Last Modified: 2010-04-09
Hello all,

     I have a website where I have a link to an external page that has some information.  Is it possible to MASK that page with my URL?  I don't want to mask my entire domain on my site just this specific link.  Any suggestions is appreciated.  
0
Comment
Question by:fv858
2 Comments
 
LVL 9

Expert Comment

by:pallosp
ID: 17869586
You may put the external document into an iframe. It will appear under your domain.

<body style="margin:0px">
<script> document.body.scroll='no'; </script>
<iframe src="http://www.yahoo.com" style="border:none; width:100%; height:100%"></iframe>
</body>
0
 
LVL 11

Accepted Solution

by:
ethoths earned 500 total points
ID: 17880329
Make your link call some javascript and have that javascript fetch the document and put it into the iframe.

<a onclick="javascript:GetDocument()">Get Document</a>

<script language="javascript">
    function GetDocument()
    {
        document.getElementById("IFRAMES ID").src=="http://www.yahoo.com";
    }
</script>
0

Featured Post

Ransomware-A Revenue Bonanza for Service Providers

Ransomware – malware that gets on your customers’ computers, encrypts their data, and extorts a hefty ransom for the decryption keys – is a surging new threat.  The purpose of this eBook is to educate the reader about ransomware attacks.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Someone recently asked me about how to display a progress indicator on a page while an iframe is loading. And I remember when I first came across this myself. It was a bit tricky to get my head around, but really, it's very simple. The most impor…
Find out what you should include to make the best professional email signature for your organization.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

832 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question