Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Use frames to hide actual URL

Posted on 2006-12-01
5
Medium Priority
?
192 Views
Last Modified: 2012-05-05
I would like the url of my site to remain constant when people are clicking around.

This is temporary while I present a site to a potential client.

Anyways, I think it can be done in frames, can't it?

0
Comment
Question by:edvinson
  • 3
  • 2
5 Comments
 
LVL 28

Expert Comment

by:gamebits
ID: 18058479
Hi edvinson,

A frame will give the url of the site but not the url of specific pages

Gamebits
0
 
LVL 1

Author Comment

by:edvinson
ID: 18058603
Ok good. We are on the right track.

Now, how do I "wrap" an entire site? So the user sees "example.com" at the top, no matter what they click on?

THanks.
0
 
LVL 28

Accepted Solution

by:
gamebits earned 2000 total points
ID: 18059371
You start by creating a page with the frameset

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "http://www.w3.org/TR/html4/frameset.dtd">
<html>
<head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      <meta name="generator" content="CSE HTML Validator Professional (http://www.htmlvalidator.com/)">
</head>
<frameset>

<frame name="content" scrolling="yes"
noresize src="http://www.newgamebits.com/TEST/content.html">

</frameset>
</html>

The src attribut point to the default page (home page) that will open when somebody navigate to your url.

Every link that you put on your webpages now will have to target the frame

example:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
      <title></title>
      <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
      <meta name="generator" content="CSE HTML Validator Professional (http://www.htmlvalidator.com/)">
</head>

<body>
<h1>hello world</h1>
<a href="http://www.newgamebits.com/TEST/000.html" target="content">Try this</a>
</body>
</html>

As you can see on the first script I named the frame "content" (<frame name="content")
and as you can see with the link I target the frame ( target="content">).

You can see it work by trying this link

<a href="http://www.newgamebits.com/TEST/frame.html">try it</a>

NOTE: If I had put the frameset in my index page at newgamebits.com you would not see the /TEST/frame.html all you would see would be www.newgamebits.com

Gamebits

0
 
LVL 1

Author Comment

by:edvinson
ID: 18059805
Exactly what I needed.

0
 
LVL 28

Expert Comment

by:gamebits
ID: 18059812
Thanks for the points and the grade.

Gamebits
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone 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

When it comes to write a Context Sensitive Help (an online help that is obtained from a specific point in state of software to provide help with that state) ,  first we need to make the file that contains all topics, which are given exclusive IDs. …
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.
In this Micro Tutorial viewers will learn how to create navigation buttons that change on rollover, using CSS (Continuation of the CSS Image Sprite tutorial) Create a parent ID for all the list items       - Specify position: absolute and display: block…
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…

916 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