Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Use frames to hide actual URL

Posted on 2006-12-01
5
Medium Priority
?
191 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This is a PowerShell web interface I use to manage some task as a network administrator. Clicking an action button on the left frame will display a form in the middle frame to input some data in textboxes, process this data in PowerShell and display…
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
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)
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

661 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