Click here to Skip to main content
16,014,568 members
Home / Discussions / Web Development
   

Web Development

 
GeneralXHTML Strict Pin
Domenic Denicola23-Jul-02 13:47
Domenic Denicola23-Jul-02 13:47 
GeneralRe: XHTML Strict Pin
Colin Leitner24-Jul-02 1:41
Colin Leitner24-Jul-02 1:41 
GeneralRe: XHTML Strict Pin
Paul Watson26-Jul-02 3:29
sitebuilderPaul Watson26-Jul-02 3:29 
GeneralRe: XHTML Strict Pin
Domenic Denicola27-Jul-02 5:11
Domenic Denicola27-Jul-02 5:11 
GeneralRe: XHTML Strict Pin
Paul Watson27-Jul-02 5:37
sitebuilderPaul Watson27-Jul-02 5:37 
GeneralRe: XHTML Strict Pin
Domenic Denicola27-Jul-02 8:42
Domenic Denicola27-Jul-02 8:42 
GeneralGo to anchor Pin
Hans Ruck23-Jul-02 7:17
Hans Ruck23-Jul-02 7:17 
GeneralRe: Go to anchor Pin
Jeremy Falcon23-Jul-02 7:38
professionalJeremy Falcon23-Jul-02 7:38 
Bogdan Rechi wrote:
I need to scroll to a link when my page loads.

You'll want to use what's called a named anchor. Let's say this is your link...

<a href="something.html" name="mylink">Clickety</a>

To have the page go directly to it, append a pound sign after the URL followed by the name of the anchor. For instance...

http://www.somepage.com/mypage.html#mylink

It'll go directly to the link.

Now, to force that without having to type in the pound sign, etc. you could use one of many techniqes, but I'll focus on two.

In JavaScript...

<body ... onLoad="location.href += '#mylink';">

In a client-side redirect...

<head><br />
<meta http-equiv="refresh" content="0;URL=mypage.html#mylink"><br />
</head>


Jeremy Falcon
Imputek

<nobr>"..." - Paul Watson  07-17
GeneralRe: Go to anchor Pin
Hans Ruck23-Jul-02 7:52
Hans Ruck23-Jul-02 7:52 
GeneralDataGrid Editing doesn't update Pin
Steve Severance23-Jul-02 5:42
Steve Severance23-Jul-02 5:42 
GeneralRe: DataGrid Editing doesn't update Pin
Not Active23-Jul-02 8:28
mentorNot Active23-Jul-02 8:28 
GeneralRe: DataGrid Editing doesn't update Pin
Steve Severance24-Jul-02 8:23
Steve Severance24-Jul-02 8:23 
GeneralRe: DataGrid Editing doesn't update Pin
mgriffith24-Jul-02 8:33
mgriffith24-Jul-02 8:33 
GeneralCreating a menu list Pin
Gregory22-Jul-02 23:41
Gregory22-Jul-02 23:41 
GeneralRe: Creating a menu list Pin
benjymous23-Jul-02 2:54
benjymous23-Jul-02 2:54 
GeneralRe: Creating a menu list Pin
Nick Parker23-Jul-02 4:27
protectorNick Parker23-Jul-02 4:27 
GeneralRe: Creating a menu list Pin
Suolan23-Jul-02 18:05
Suolan23-Jul-02 18:05 
GeneralDifferent actions from one form. Pin
David Fleming22-Jul-02 11:32
David Fleming22-Jul-02 11:32 
GeneralRe: Different actions from one form. Pin
Jeremy Falcon22-Jul-02 11:44
professionalJeremy Falcon22-Jul-02 11:44 
GeneralRe: Different actions from one form. Pin
David Fleming22-Jul-02 12:24
David Fleming22-Jul-02 12:24 
GeneralRe: Different actions from one form. Pin
Paul Watson23-Jul-02 7:09
sitebuilderPaul Watson23-Jul-02 7:09 
GeneralRe: Different actions from one form. Pin
David Fleming23-Jul-02 17:37
David Fleming23-Jul-02 17:37 
GeneralRe: Different actions from one form. Pin
Chris Maunder23-Jul-02 18:17
cofounderChris Maunder23-Jul-02 18:17 
GeneralRe: Different actions from one form. Pin
David Fleming24-Jul-02 22:46
David Fleming24-Jul-02 22:46 
GeneralRe: Different actions from one form. Pin
Chris Maunder24-Jul-02 22:54
cofounderChris Maunder24-Jul-02 22:54 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.