|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
Hiding URLs
I've got a link in a page that opens a new browser instance (target="_blank")
I've learned how to prevent the URL from appearing when the user hovers the mouse over the link, but is there a way to "blank out" the address bar in the new browser window that pops up? |
|
#2
|
||||
|
||||
|
* Scene: The WebCave... full of search engine spiders and their webs
WebComputer: Bad practice Alert! Bad practice Alert! Web Standards Man: Where, computer? WebComputer: HTML forums, standards man! Web Standards Man: Jeeves, quick! fetch my DOM utility belt! Jeeves: its still in the wash, standards man Web Standards Man: nevermind... to the ECMAMobile! * Obligatory Web Standards Man music: "Da-na-nah-na-Da-na-nah-na... Standards Man! Da-na-nah-na-Da-na-nah-na... Standards Man! " --------------------------------------- Oooookay, Chabuhi... Hiding URIs from the visitor is a Very Bad Thing (tm) (mmm'kay?), oh and the target="" attribute has been dropped from XHTML If by "preventing the URL from appearing when the user hovers the mouse over the link", you mean "I overrode the IE6 status bar with my 1337 javascript!" then you've just broken ECMAScript! Thank you! A round of applause to chahubi for beginning a crash course in "learn how to phish!" ....Web site visitors trust the status bar and ALL browser-chrome to tell the truth (thank you, IE devs, for preventing this), and overriding the status bar is not the sort of thing you want to do if you want to win friends of the site visitors Anyway, Standards Man, myself... will assist citizen chabuhi in getting address-bar less popups to appear QuirksMode.org has an interesting article on W3C-DOM popups, so here's what he wrote for your convienience: http://www.quirksmode.org/js/popup.html#attributes Example link: Code:
<p>See also the <a href="../key.html" type="popup">key</a> to my compatibility tables.</p> And the W3C DOM ECMAScript Code:
var x = document.getElementsByTagName('a');
for (var i=0;i<x.length;i++) {
if (x[i].getAttribute('type') == 'popup') {
x[i].onclick = function () {
return pop(this.href) }
x[i].title += ' (Popup)';
}
}
Unfortunatly... I've run out of time to tell you how to remove the address bar Wait for my side-kick ShadowWizard to arrive and fill you in on this one Good day, fair citizen of ASPFree! *Flies off* Last edited by 1337_d00d : February 9th, 2005 at 01:41 PM. |
|
#3
|
||||
|
||||
|
* Scene: The WebCave... full of search engine spiders and their webs
WebComputer: Bad practice Alert! Bad practice Alert! Web Standards Man: Where, computer? WebComputer: HTML forums, standards man! Web Standards Man: Jeeves, quick! fetch my DOM utility belt! Jeeves: its still in the wash, standards man Web Standards Man: nevermind... to the ECMAMobile! * Obligatory Web Standards Man music: "Da-na-nah-na-Da-na-nah-na... Standards Man! Da-na-nah-na-Da-na-nah-na... Standards Man! " Can't stop laughing...... best thing I've heard in a while. |
|
#4
|
||||
|
||||
|
lol
Dude, what are you on? ![]() well, you can't change the text in the address bar, but you can hide it when opening the window by having such code: Code:
<a href="page.asp" target="newWindow" onclick="window.open('page.asp', 'newWindow', 'location=0'); return false;">click me</a>
this code would open page.asp as pop up window that has no address bar at all... more info can be found here: http://www.javascript-coder.com/win...ndow-open.phtml ![]() |
|
#5
|
|||
|
|||
|
Actually, "Elite Dude", it's to protect an internal address from the prying eyes of such creatures of the night as yourself and your buddy Batman. But thanks for automatically suspecting me of being up to no good rather than just being inexperienced. Explains your handle anyway. So glad I came back to look for an answer. No seriously, I truly enjoy being made to feel stupid by someone whose pantheon of knowledge is so clearly overwhelming when I was simply asking a question to which I don't know the answer. And then to malign me with such accusations ... very worthwhile.
I await your doubtlessly witty reply of "methinks the lady doth protest too much" with great eagerness. |
|
#6
|
||||
|
||||
|
Quote:
chill down, I won't allow flame wars here. unlike you, he didn't offend you personally he just mentioned that your way is not standard. anyways, read my post, I've given sample code that I believe would help. |
|
#7
|
||||
|
||||
|
Wow...sounds like somebody can't handle "Constructive Criticism".
All of us were beginners at one time and were treated with utter distain and disrespect, it comes with the territory of being a newbie. Everybody pays their dues! Now suck it up, drive on, gain experience and treat others badly...that's the never ending cycle of programming! Last edited by Memnoch : February 15th, 2005 at 12:05 PM. |
|
#8
|
|||
|
|||
|
Even more helpful, Memnoch. Sad thing is, l33t d00d actually had an answer in there but getting to his "punchline" was such a chore that I missed it.
So I guess the rule is that it's okay to be dished on but not okay to dish back? Anyway ... thanks for the code ideas (and I do mean that part sincerely). And you'll just have to trust me that I'm using my slight but growing powers for good and not evil. See you all back at the Justice League. |
|
#9
|
||||
|
||||
|
Quote:
![]() Quote:
![]() |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Hiding URLs |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|