-
Close webpage
I have got this webpage, how can i make it so when i click a link the webpage closes, so if i click on <A href="test.htm">Test</a> it would load test.htm then close the browser?
-
-
If you don't mind my asking, I'm just curious about why you would want to do this. Seems to me it might be alarming to certain users who may think something crashed in the browser.
-
-
I'd be annoyed if you closed my browser window. Sometimes I'll want to use the back button and go find whatever (like a google search) and look for something else.
However, in the case that it is a window you opened with javascript, you can just use this:
onclick="window.close(); return false;"
But that will probably only work if javascript originally opened the window-- otherwise it'll be restricted.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks