Site jumping instead of scrolling on first click - html

I am a noob on coding. I built my site using a template and modified it with Dreamweaver.
Everything is ok to me except one thing. When the page first loads my first click on anything jumps to that section instead of scrolling to it.
I spent a lot of time reading stuff and testing but still don't have a clue how to avoid it. My site is set to go "Dreamscradle.com" and I think think it should start with "Dreamscradle.com/index.html" How do I set it?
Any help will be welcome, Thanks.

This happens because you enter the site without index.html when clicking a link it will redirect to index.html and then add the anchor. You could rewrite your links without index.html to solve the issue.
for example:
Portfolio
To:
Portfolio

Related

How to make many pages in vs code

So I made 200 line code for a website I'm making and then I made a button to open another page that i will code as well but here is the problem I don't know how to start another page in vs code please help I'm beginner at coding I tried searching in YouTube but nothing helped
It can be hard to learn how to start - but we've all been there. You can do it!
For a brief starter, in VSCode, you can try this, and start learning from this point.
In your first HTML file button, ideally you'll have HTML similar to this: <a href="/file2.html"/>. In VSCode, just create file2.html in the same directory as file1, and add some HTML. It should populate.

Why my anchor link from a secoundary page is not working?

I have the following problem with one of my current projects.
I would like to achieve that when you click on a link which is on a secondarly page, it sends you to the home page but, not at the top of the homepage (by default), I would like that it sends you where a specific ID is.
At the moment I have the following URL in this special link but it doesn't work
link
I have tried different ways I saw in this community but I didn't have luck. At the moment when you click it send you to the homepage but at the top and my ID is almost at the end of the page
How can I fix it please?
Thanks
Kindly use below code on page load. make sure you call this once DOM is loaded. This will scroll the page to this anchor.
location.hash = "#contact-anchor";

page jumps with <a href> adding websites randomly to links

I'm trying to make page jumps on a page in blogger, using:
Test
for the source and
<a name="Test"></a>
for the target.
And this is all fine and dandy except when I switch from html mode to compose mode...and then back to html mode. When this happens it triggers the above lines to all of a sudden turn in to these two lines:
Test
Where the blogID site is a login for blogger.com and the null site just gives an error message.
It's quite annoying and, while I could just manually delete these added web addresses each time, I am hoping someone out there has a solution that will stop this from happening as i have a lot of jumps and will constantly be updating the page.
Does anyone know why this addition happens and how to stop it?!
Actually sometimes This problem occurs because this link https://www.blogger.com/null generated automatically and cause re-routing of the error page.
To solve this problem, enter the Html tab for the post and then look for this link and then remove it from the code, then publish your post immediately in Html Tab.
and you should not return to compose tab to avoid automatic generation of this link again.
you can see Demo
I had a similar proplem when working with this blog Workscheduling. the solution is to edit the link separately and then test it before pasting.

Flash Issue index.html

I know very little about flash but my news works website it written in this but not working and I've been asked to have a look. The problem is the login page is corrupted and so will not allow you to go past it but thats where most of the website is (My plan is to create a HTML copy of the site) The only html page I see is index.html and when on the page and you click a link, the address bar along the top still remains at index.html, does anyone know how I can get into the flash site (I have this offline) so I can edit the login page and thus copy the code/information.
Thanks for you're time
Ross
It's hard to tell what's wrong without any code, would you care to share the source code with us?
Also, some interpunction would help. It's very hard to make up what you're trying to say here, because everying is one big sentence.

Hard coding a web page to laod at a certain place

I am looking to hard code a html web page so upon loading goes to a set position on the page. Obviously normally it loads and starts at very top and you scroll down.
I know you can do it using link attribute but I am trying to set it forall traffic and hard code it in.
Hope you can help.
Will
Hopefully I understood what you want to do.
Here you can scroll using javascript to the bottom:
http://www.mediacollege.com/internet/javascript/page/scroll.html
If you can use ASPX you can just bring a special item into view:
http://msdn.microsoft.com/en-us/library/system.windows.frameworkelement.bringintoview.aspx
Like you said, you can move by using Link anchors (example below goes to anchor 5):
http://www.activevb.de/rubriken/komponenten/index-komponenten.html#anchor5
As far as I remember it was called bookmark, not anchor:
http://www.w3.org/TR/css3-gcpm/#bookmark-level
Hope there is a way cou can solve it or explain it with an small example.
Regards