/    Sign up×
Community /Pin to ProfileBookmark

Get Text from the Address bar!!

I searched the web for quite some time and i found no information about how to retrive the text or value from the address bar (ie)
I don’t want the normal location.href stuff, be cause that just gives you the location of the current webpage, i really need a way to get the text the user entered into the address bar, is that possible at all?

thanks in advance!!

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@gil_davisNov 19.2003 — No, it is not possible. I'm sure that it would be a [color=red]HUGE[/color] security hole if you were able to see what the user is typing before he leaves your page.
Copy linkTweet thisAlerts:
@bigbenjamauthorNov 19.2003 — i see and i guess thats the reason why i can't get the new url in the onbeforeunload event, thanks anyway!
×

Success!

Help @bigbenjam spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.5,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...