address-bar

hide mobile browser address bar on chrome (android)

那年仲夏 提交于 2019-12-17 20:37:05
问题 We have a site, where with a simple JavaScript <body onLoad="setTimeout(function() {window.scrollTo(0, 1)}, 100);"> We hide the address bar on most browsers (safari, and the native android browser) this line of JavaScript works fine for most, but we have noticed a strange behavior on chrome, the page indeed scroll down, but the address bar doesn't hide! After the loading of the page, if the user scrolls down a little bit with the finger, the address bar hides normally. I have also tried to

Turn off URL manipulation in AngularJS

≡放荡痞女 提交于 2019-12-17 04:26:48
问题 I'm trying to write my first web-app with Angular. In the normal mode (html5Mode off), Angular forces the address's hash part to look like a "path" (adding a leading "/"), and encodes special characters - for example, it allows a single "?" and "#" in the hash and replaces the others with %3F and %23. Is there a way to turn this feature off? I don't want to use the $locationProvider / $routeProvider features - I want to parse the hash myself (In my case, the user's will enter some "free text"

Accessing a cookie's value through the Address Bar

…衆ロ難τιáo~ 提交于 2019-12-12 01:06:04
问题 Let's say that a user on my site has a cookie from another site and I know the cookie's name. Basically what I am trying to do is to give users a link to the address bar, and with it a Javascript code which will activate that cookie's value(lets call that cookie "Joe"). For example: My site will give the user this link: Examplesite.com/page=(here is the code which will activate a specific cookie value with javascript or something) the output will have to be something like this after reading

JSF login forward address bar / url — redirect does not solve problem

余生长醉 提交于 2019-12-11 16:25:31
问题 Okay we have a single - sign - on and the user will likely enter www.blabla.com/AppName/ to reach our site. We then define a welcome site, use a phaselistener to check: is user trying to access the welcome site? yes -> try to login - works? yes -> get user roles -> forward to the appropriate site for this specific user. E.g. user niceBelly goes to page /somewhere/in/many/folders/beer.jsf and user barbie goes to /breasts/pink.jsf a redirect is in this application not possible for some reasons.

Mobile Browser Address Bar not hiding

对着背影说爱祢 提交于 2019-12-11 08:09:39
问题 Hey I got a "beta" site it works well in mobile except address bar. Address br is always there. When I scroll it must go away. but it is still there. And in iOS Chrome scrooling is laggy. I think they are same problem. Website: http://goo.gl/nx1HME Thanks 回答1: Oh I think I must answer my question. It cause by html { height:100%; } line. 来源: https://stackoverflow.com/questions/25523847/mobile-browser-address-bar-not-hiding

jquery or js detect when hit enter on same hashcode url on address bar

扶醉桌前 提交于 2019-12-11 06:17:23
问题 I have a page with sticky menu bar in top. There are some internal links on this page. when I click on internal link, page scrolls and element having hashcode id moves to top. but heading hides in sticky menu. So on window load I have written js code, see below: if(window.location.hash) { var hash = window.location.hash.substring(1); //Puts hash in variable, and removes the # character console.log (hash); if(hash && $("#"+hash).length){ $("#"+hash).css('padding-top', '80px'); } $(window)

Load remote JavaScript files via the address bar

为君一笑 提交于 2019-12-09 17:10:18
问题 Is it possible to load remote JavaScript files from the address bar? I have been trying to put this into the address bar: javascript:src='http://depot.com/file.js';funcname(); I'm not using this for bad things. I'm just testing my site, that's all. If you wanted to protect your site you must learn to attack it first, right? 回答1: I guess you should be able to do the following: javascript:(function () { var newScript = document.createElement('script'); newScript.type = 'text/javascript';

Keep URL unaffected when anchor link is clicked

倖福魔咒の 提交于 2019-12-09 11:39:08
问题 I've checked other posts on here, no results of what I'm looking for. I want to click on <a href="#about">About</a> <div id="about">Content of this..</div> and have it scroll to that element without putting www.domain.com/#about in the address bar As a perfect example please check out this site that I found here and click on some of the links --they don't change the address bar when clicked. 回答1: Played around with this myself and here is a summary of my learnings on the subject. Here's the

Display iFrame url in address bar

柔情痞子 提交于 2019-12-07 12:20:44
问题 Is it possible to include the url of the iframe content in the url address bar? For example, i have a domain sub.test.com which has an iframe with src to realpage.com Surfing through the page logically doesnt change anything in the address bar since we are opening the realpage in the iframe on other domain. I know it is not possible to inject the whole url into address bar, but what about without the hostname? For example, if i open site realpage.com/first.php in iframe , i want the url in

Display iFrame url in address bar

微笑、不失礼 提交于 2019-12-06 01:49:31
Is it possible to include the url of the iframe content in the url address bar? For example, i have a domain sub.test.com which has an iframe with src to realpage.com Surfing through the page logically doesnt change anything in the address bar since we are opening the realpage in the iframe on other domain. I know it is not possible to inject the whole url into address bar, but what about without the hostname? For example, if i open site realpage.com/first.php in iframe , i want the url in address bar to change to sub.test.com/first.php or sub.test.com/first adamj You have two options here you