English 中文(简体)
传真:URL和扫描机在纸面上排在顶端
原标题:# character in URL and Scroll to top of the screen on page load
  • 时间:2010-08-01 11:18:32
  •  标签:
  • url

当我上下页时,浏览器如果在URL中有一个#,就保留了该页的滚动位置。 如何在不使用Java 字典的情况下将这一行为压倒在屏幕上。

http://example.com/#

Update By default the URL is http://example.com/ and the # character is added to the URL upon clicking some part of the page.

问题回答

如果有<代码><form action=#"......> 在某些地方,这 s了你。 改动如下:<form action=” ......>

无论在形式上,还是联系人,你都有一个编号。

改为javascript:

改为index.php或请假空白(<form action=>.





相关问题
Using PHP to find part of a URL

Take this domain: http://www.?.co.uk/elderly-care-advocacy/mental-capacity-act-advance-medical-directive.html How could i use PHP to find the everything between the first and second slash regardless ...

Domains & Foreward Slash

This is rather difficult to explain so please bear with me. We will be hosting 4 websites on our server and the plan is to have each site sit under its own domain: site-a.com site-b.com sub1.site-b....

Encoding of window.location.hash

Does window.location.hash contain the encoded or decoded representation of the url part? When I open the same url (http://localhost/something/#%C3%BC where %C3%BCtranslates to ü) in Firefox 3.5 and ...

Auth-code with A-Za-z0-9 to use in an URL parameter

As part of a web application I need an auth-code to pass as a URL parameter. I am currently using (in Rails) : Digest::SHA1.hexdigest((object_id + rand(255)).to_s) Which provides long strings like : ...

RubyCAS-Client question: Rails

I ve installed RubyCAS-Client version 2.1.0 as a plugin within a rails app. It s working, but I d like to remove the ?ticket= in the url. Is this possible?

采用网路服务方法

我撰写了一个网络服务,期望一个参数(所谓的“hlink”)成为一种ur。 在使用网络服务之前,URLEncode 所涉参数(“hlink”)。 然后我打电话......。

热门标签