Solved

Possible To Mask External Link

Posted on 2006-11-03
2
137 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Use these top 10 tips to master the art of email signature design. Create an email signature design that will easily wow recipients, promote your brand and highlight your professionalism.
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
In this tutorial viewers will learn how to style a corner ribbon overlay for an image using CSS Create a new class by typing ".Ribbon":  Define the class' "display:" as "inline-block": Define its "position:" as "relative": Define its "overflow:" as …
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…

706 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now