Click here to Skip to main content
13,054,329 members (118,855 online)
Rate this:
Please Sign up or sign in to vote.
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.

Posted 13-Dec-12 1:27am
Updated 13-Dec-12 1:31am
Tadit Dash 13-Dec-12 9:13am
Can you please post the codes where exactly you want to this ?
ryanb31 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?
ryanb31 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
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.170713.1 | Last Updated 13 Dec 2012
Copyright © CodeProject, 1999-2017
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