Click here to Skip to main content
15,908,675 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Updated 13-Dec-12 1:31am
v2
Comments
Can you please post the codes where exactly you want to this ?
ZurdoDev 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 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?
ZurdoDev 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)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900