Solved

Possible To Mask External Link

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

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
parse url to form? 7 26
How to check if a session is disconnected in php 9 32
Responsive Font Size 6 31
send email part1 9 28
Showing your events from Google Calendar in Google Maps Why? I travel all week and I thought it would be ideal if staff in office knew where I was based on my calendar. (OK real reason: my son wanted to see where I would be working, and I thoug…
When crafting your “Why Us” page, there are a plethora of pitfalls to avoid. Follow these five tips, and you’ll be well on your way to creating an effective page.
In this tutorial viewers will learn how to embed an audio file in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: : The declaration should display (CODE) HTML5 is supported by the most recent versions of all major browsers…
In this tutorial viewers will learn how to embed videos in a webpage using HTML5. Ensure your DOCTYPE declaration is set to HTML5: "<!DOCTYPE html>": Use the <video> tag to insert a video. Define the src as the URL of your video; this is similar to …

820 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