This is a discussion on "JavaScrip alert windows. HELP!" within the JavaScript Forum section. This forum, and the thread "JavaScrip alert windows. HELP! are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
JavaScrip alert windows. HELP!
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
|||
|
JavaScrip alert windows. HELP!
Hello all I need a little help with some JavaScript. I need to know if it is possible to change something on an error message alert box. Currently i have a error alert box and the title is internet explorer. I need to know if I can change this to something else for example South coast escapes. I fyou have any ideas can you post it please! Thanks.
Also I'm looking on how to identify what browser someone is using ans have it open a pop up and say for example hello you are using internet explorer this site is best viewed at 8660 * 4000 etc.... Any ideas? |
|
|
|
|||
|
I don't believe it is possible to change the title of an alert window, but more importantly, why are you showing one in the first place? I can think of no valid reason for such a message to appear and be of any use to a visitor.
I also see no point in telling someone what browser they are using and what resolution the site is best viewed at. Your site should work in all common resolutions - Everything from 800x600 and up and if it doesn't then you may need to rethink your design. I don't believe many users would change their resolution just to view your website properly. |
|
|||
|
I understand what your saying. Its not a real site its for an assignment. I have to show certain things for example java validation of a form which i have done in some sorts, hence the use of an alert window. and i want to create a pop up window.
|
|
||||
|
if you really need to change the title, and if you're allowed to, you can use VBScript which lets you specify the messages's title:
Last Blog Entry: Random String in Javascript (Apr 21st, 2008)
|
|
|||
|
Yeah i know vb code like the back of my hand but it has to be in JavaScript! thanks anyway!
|
|
|||
|
It's not possible in Javascript (the alert title change).
For the other you'll just use any of the many browser detection scripts out on the web. There's several different methods they use. http://www.google.com/search?q=javas...wser+detection |
|
|||
|
You can't actualy do that, you can however open a page that is centered on the middle of the screen and that opens fullscreen that takes the window focus....
this will however really piss off people who do not want to use your app such as for pupup window advirtising and you will get your site black listed if this is your intent. I see no legitimate reason to try and force a user to stay at a screen so although it is possible Im not giving you any help until you can give me one. |
![]() |
| Tags |
| javascrip, alert, windows, help |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Alert Box | acrikey | JavaScript Forum | 4 | Mar 25th, 2008 23:23 |
| alert Message messing up | sdbdgwood | JavaScript Forum | 0 | Feb 8th, 2008 16:15 |
| javascript alert | ycpc55 | JavaScript Forum | 1 | Jan 7th, 2007 02:02 |
| Newbie alert..... | pagey | Introduce Yourself | 11 | Sep 2nd, 2006 08:55 |
| One-time, IP based alert? | krazykikikatt | JavaScript Forum | 3 | Apr 5th, 2006 01:50 |