smiles Posted February 16, 2006 Share Posted February 16, 2006 when I direct people to a new site by clicking on a link and in that site I had created a pop up window to show message for them , but then I just want that site is closed , just only the pop up window appears on the screen , how can I do that ( by changing code of that site ) ???thanks !!! Link to comment Share on other sites More sharing options...
scott100 Posted February 16, 2006 Share Posted February 16, 2006 when I direct people to a new site by clicking on a link and in that site I had created a pop up window to show message for them , but then I just want that site is closed , just only the pop up window appears on the screen , how can I do that ( by changing code of that site ) ???thanks !!! <{POST_SNAPBACK}> I have a script for this but i dont have it on me, off the top of my head try this. put this in the pop up window:<body onload="window.opener.close()" /> That should hopefully do it, you will probably get an alert though saying that you are trying to close the main window (which is a pain) Link to comment Share on other sites More sharing options...
smiles Posted February 17, 2006 Author Share Posted February 17, 2006 I have a script for this but i dont have it on me, off the top of my head try this. put this in the pop up window:<body onload="window.opener.close()" /> That should hopefully do it, you will probably get an alert though saying that you are trying to close the main window (which is a pain) <{POST_SNAPBACK}> you know , my suppose has many problem , if i do that maybe i never see the site later if I change my likesactually , what i want is when I send instant message to my friend , that instant message is formed by a link , that when they click on it , a pop up window appears , a way to make amazing Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now