javascript alert help

kidcajes

New Member
Messages
21
Reaction score
0
Points
0
Hi,

I need help regarding the title for the alert message of javascript:

HTML:
<a onclick="alert('Hold on there...click the button 
that says Instant Access.'); return false;" href="#">CLICK ME</a>
Output title of the message box for this one is : [Javascript Application]

How do i change the title for this one. Like the one it did here http://www.productlaunchformula.com/

Your help guys are greatly appreciated. Thank in advance
 

drf1229

New Member
Messages
71
Reaction score
1
Points
0
Ok first of all omit return false;
No need for that.
Second, I recommend instead of ' put \" (just the way I do it)

To change the title, I believe you just do this:

window.title="New title";
 
Last edited:

Twinkie

Banned
Messages
1,389
Reaction score
12
Points
0
Works in my browser.

The return false prevents the page from visiting #. Not a lot of point in that, but it does something ;)
 
Last edited:

drf1229

New Member
Messages
71
Reaction score
1
Points
0
Works in my browser.

The return false prevents the page from visiting #. Not a lot of point in that, but it does something ;)
Oh I never put that. I just wouldn't put it as an anchor but a <div>
 
Top