Jump to content

focus page on onclick?


codrgii

Recommended Posts

Place a link somewhere in you page like so.

<a name="foo">bar</a>

This is called a bookmark.

 

Then to be able to go to the place of that link you do this:

<a href="#foo">Go to foo</a>

 

 

From than on you can , for instance place, the bookmark in a div, position the div where ever you want on you page, and give the div 0 opacity or whatever you feel like.

why don't u want the "#var" in your link?

 

You can still send information post refresh it doesn't hurt anything.. the only thing it does is maybe not look as clean in the url.. but lets be honest who gives a shit? Your users don't i'm sure.

 

There is another option but believe me you don't wana bother.. it requires an extensive amount of javascript to track lots of variables on the page. I'm sure your users would rather have your site be fast than slow as shit and a slightly cleaner url

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.