Right now I am using popads and propeller ads . But I want to stop using them as i want to show my second website as an advertise on my first website. What is want is a simple javascript code that can open "example.com" in a new window when someone clicks on my page. Can anyone help me ?
Is there some reason you want to completely piss off visitors to your page so they won't even visit, or load a script-blocker before they do so?
There are a number of pop-under javascript examples you can find. Use one that sets a cookie so the pop happens only once. Pop-unders are annoying. But as far as online revenue goes, they are helpful. Pop-unders are much more effective than banner ads.
you can use subdomain redirection code ..mmmmm.may be its works,,ask your hosting to get one some hosting help with that..