low_delta: (Default)
How do they do that thing where no matter where you are in their site, only the homepage address shows up in the address bar of my browser?

Date: 2001-08-05 11:41 am (UTC)From: [identity profile] fleur.livejournal.com
Very easy; they just write into into one of the head elements of the html document that creates the page. Easiest thing in the world.

Date: 2001-08-06 12:36 pm (UTC)From: [identity profile] banana.livejournal.com
It's frames. The main browser window doesn't go anywhere but the page shown in the location box at the top, but that page doesn't have any content except to define frames and load stuff into them. When you hit a link, the content of one of the frames changes, but not the whole browser.

If you want an example, save these four pages, then point your browser at index.html

index.html:
<html>
	<head>
		<title>
			The site that never moves
		</title>
	</head>
	<frameset cols="33%,67%">
		<frame src="leftmenu.html" name="menu">
		<frame src="homepage.html" name="main">
	</frameset>
</html>


leftmenu.html:
<html>
	<body>
		<h1>Menu</h1>
		<menu>
			<li><a href='homepage.html' target='main'>Home</a></li>
			<li><a href='blah.html' target='main'>Blah</a></li>
		</menu>
	</body>
</html>


homepage.html:
<html>
	<body>
		<h1>Home page</h1>
		Home blah
	</body>
</html>


blah.html:
<html>
	<body>
		<h1>Blah</h1>
		More blah
	</body>
</html>


If you can figure how to hide the divider between the frames, you win a job as a web designer. ;~)

Profile

low_delta: (Default)
low_delta

March 2026

S M T W T F S
1234567
8910111213 14
15 161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Mar. 25th, 2026 02:23 am
Powered by Dreamwidth Studios