• Log in or sign up for an account here: https://www.sythe.org/login

Javascript Help

  • Thread starter Thread starter R
  • Start date Start date
Status
Not open for further replies.

R

Legend

Retired Administrator
Roary Donor
Mudkips
Legendary
Joined
Apr 4, 2011
Sythe Gold
572
Messages
19,571
In Memory of Jon
<3 n4n0
Sythe Awards 2013 Winner
Sythe Awards 2014 Winner
Sythe Awards 2015 Winner
Not sure if I'm in the right place, never used this section before :o

I'm customizing a theme for my Tumblr page, and I just need a little bit of help :)

Currently, I have this code for a 'welcome message'
<script type="text/javascript">
window.onload= loaded;
function loaded()
{
alert('MESSAGE HERE');
}
</script>

Can I/How do I choose the title of the pop-up box?

icYU8.png
 
Sadly you can't change the title of the box anymore.
Its a safety feature they built in, to avoid shady people of changing the pop-ups.
So its not possible unless you open it in a HTML / new tab :/
(if you'd happen to find a solution or trick, I need it too)
 
Two Factor Authentication User
Gohan has AIDS
If I'm not mistake, you can set it by adding a second argument to the alert function, so
alert('MESSAGE HERE', 'I AM A TITLE');
if that doesn't work then I doubt anything will. My JS is a bit faded now but in C# it is done like that.
 
If I'm not mistake, you can set it by adding a second argument to the alert function, so
alert('MESSAGE HERE', 'I AM A TITLE');
if that doesn't work then I doubt anything will. My JS is a bit faded now but in C# it is done like that.

The problem is you can't make an alert box with two buttons inside it.
For example "submit" "cancel" buttons inside Rwm his textbox.
And I think thats what he's looking for :P

In case you only need an "ok" button, than alerts work okay probably.
 
In Memory of Jon
<3 n4n0
Sythe Awards 2013 Winner
Sythe Awards 2014 Winner
Sythe Awards 2015 Winner
Thanks for the help, but I don't think it's possible, cheers guys.
 
Status
Not open for further replies.
Runescape Gamblingrunescape gambling
Back
Top