Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: Javascript jQuery
Hi All,
When the user input ctrl+n for new browser window i want to clear the address url, by default its not clearing. I need to do it by using javascript/jquery.I want output like google chrome.If i open googlechrome and after that i click ctrl+n in that time they r cleared addressbar.I want output like this.
 

Thanks&Regards
Hari
Posted 13-Dec-12 2:27am
Edited 13-Dec-12 2:31am
v2
Comments
Tadit Dash at 13-Dec-12 9:13am
   
Can you please post the codes where exactly you want to this ?
ryanb31 at 13-Dec-12 10:18am
   
That's a function of the browser. You can't write jquery code to control that because the browser is loading a blank (depending on your browser settings) tab so your code is not going to run because your page is not getting loaded.
Hari Krishna Prasad Inakoti at 14-Dec-12 1:11am
   
Hi ryanb31,
If i open my web site and click on ctrl+n new window open with same url.I don't want like that i want default page.Can we do like that?
ryanb31 at 14-Dec-12 9:14am
   
That's a function of your browser. But I don't know if your code can tell that it was just opened in a new page.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 Sergey Alexandrovich Kryukov 7,442
1 OriginalGriff 5,996
2 Peter Leow 4,292
3 CHill60 2,858
4 Mika Wendelius 2,850


Advertise | Privacy | Mobile
Web01 | 2.8.150224.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100