Timeline for Hello World window
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 18, 2015 at 1:36 | comment | added | SuperJedi224 | Upvote for the first javascript solution. | |
Nov 27, 2013 at 21:40 | comment | added | David Murdoch |
As for how it works: StackExchange uses jQuery ($ ). I use jQuery to get all of the <s> elements on the page (I used "<s>" because it was allowed by Markdown and short). Then I use text() to get the first element's text. Finally I use JavaScript's eval to evaluate/execute that string.
|
|
Nov 27, 2013 at 21:36 | comment | added | David Murdoch |
Yes, it needs to be the top answer for it to work. OR I could just edit the question itself to include the required <s>open("data:,Hello World");</s> HTML, but that might be cheating a little bit too much. :-p
|
|
Nov 27, 2013 at 21:13 | comment | added | Quillion |
Can you explain how this will work please? I am using chrome and have tried running it on the console, but I get Unexpected token ILLEGAL . Do you have to be top answer for this to work?
|
|
Nov 27, 2013 at 20:03 | history | edited | David Murdoch | CC BY-SA 3.0 |
added 4 characters in body
|
Nov 27, 2013 at 15:42 | history | edited | David Murdoch | CC BY-SA 3.0 |
added 8 characters in body
|
Nov 27, 2013 at 15:33 | history | edited | David Murdoch | CC BY-SA 3.0 |
added 44 characters in body
|
Nov 27, 2013 at 15:27 | comment | added | manatwork | Lol. I have to upvote for your optimism. | |
Nov 27, 2013 at 15:26 | history | edited | David Murdoch | CC BY-SA 3.0 |
HTML FTW.
|
Nov 27, 2013 at 15:25 | comment | added | David Murdoch | Well, it'll work as long as it is the accepted answer (and the Question doesn't have an "<s>") | |
Nov 27, 2013 at 15:21 | comment | added | manatwork | Funny trick. But sadly it depends on the ordering of the posts, which may vary. | |
Nov 27, 2013 at 15:16 | history | edited | David Murdoch | CC BY-SA 3.0 |
clevar
|
Nov 27, 2013 at 14:51 | history | answered | David Murdoch | CC BY-SA 3.0 |