|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Javascript please?
Not sure if this is the right thread for javascript, but,
I need that little piece of code that will erase the referrer URL from the browser's history. Thanks, Chris ~`^% ![]() |
|
#2
|
||||
|
||||
|
yep this is the place... but I'm not sure I follow you. what you mean by "erase the referrer URL from the browser's history"? maybe you mean this:
window.location.replace("newpage.asp"); which will redirect you to newpage.asp and won't keep it in the History of the browser, as far as I know. never used it myself but it's worth a try - let us know how it go. |
|
#3
|
||||
|
||||
|
Pretty sure you can't; however, you can use javascript to open a new window which will not have any referrer information. IF (i've never tried it so I say "IF") you can do it it would be something like document.referrer = ""; but I doubt you can do that.
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
|
#4
|
||||
|
||||
|
nope, you can't manually delete the referer. the code I've posted (replace() method) should prevent your page from being saved in the history, thus disabling the back button for example. (no page to return to as it's not saved in the history)
|
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > Javascript please? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|